diff options
author | marha <marha@users.sourceforge.net> | 2011-05-22 13:28:34 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-05-22 13:28:34 +0000 |
commit | 52011cfedaa930d61d8f60b283a2051093727582 (patch) | |
tree | f433de26ee688bc1dca5ca97c567c9ffc0ac5d48 /mesalib/src/mesa/main/arrayobj.c | |
parent | 35484135119fcf55fe1cbb1fcdd0e035f581fcfb (diff) | |
download | vcxsrv-52011cfedaa930d61d8f60b283a2051093727582.tar.gz vcxsrv-52011cfedaa930d61d8f60b283a2051093727582.tar.bz2 vcxsrv-52011cfedaa930d61d8f60b283a2051093727582.zip |
xserver xkeyboard-config libX11 randrproto pixman glproto mesa git update 22 May 2011
Diffstat (limited to 'mesalib/src/mesa/main/arrayobj.c')
-rw-r--r-- | mesalib/src/mesa/main/arrayobj.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesalib/src/mesa/main/arrayobj.c b/mesalib/src/mesa/main/arrayobj.c index ce1e277bd..8d53186c8 100644 --- a/mesalib/src/mesa/main/arrayobj.c +++ b/mesalib/src/mesa/main/arrayobj.c @@ -289,9 +289,10 @@ remove_array_object( struct gl_context *ctx, struct gl_array_object *obj ) static GLuint
update_min(GLuint min, struct gl_client_array *array)
{
- _mesa_update_array_max_element(array);
- if (array->Enabled)
+ if (array->Enabled) {
+ _mesa_update_array_max_element(array);
return MIN2(min, array->_MaxElement);
+ }
else
return min;
}
|