projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1df26
)
mesa: only update array _MaxElement if array is enabled
author
Brian Paul
<brianp@vmware.com>
Wed, 18 May 2011 14:14:32 +0000
(08:14 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 18 May 2011 14:14:32 +0000
(08:14 -0600)
Fixes failed assertion when calling _mesa_print_arrays() debug function.
src/mesa/main/arrayobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/arrayobj.c
b/src/mesa/main/arrayobj.c
index 4bfb2424004c1d3a4f7b5885af2944032dab2da5..83a82e86860e5a7b5745521c9f521c28d57b7923 100644
(file)
--- a/
src/mesa/main/arrayobj.c
+++ b/
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;
}