diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-22 14:16:00 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-22 14:16:00 -0600 |
commit | ebb991ca0d7de103dc068397ed91744bf40ee58f (patch) | |
tree | 48af4036280ce7271c1b0eee533f89596b1f5cf1 /src/mesa | |
parent | a65f385b8deec6ac1f2ed7a52f7d76ec89e167b9 (diff) |
mesa: use Elements() for loop bound
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/bufferobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index eefc1b04fa..90daa2e5b8 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -800,10 +800,10 @@ _mesa_DeleteBuffersARB(GLsizei n, const GLuint *ids) unbind(ctx, &arrayObj->FogCoord.BufferObj, bufObj); unbind(ctx, &arrayObj->Index.BufferObj, bufObj); unbind(ctx, &arrayObj->EdgeFlag.BufferObj, bufObj); - for (j = 0; j < MAX_TEXTURE_COORD_UNITS; j++) { + for (j = 0; j < Elements(arrayObj->TexCoord); j++) { unbind(ctx, &arrayObj->TexCoord[j].BufferObj, bufObj); } - for (j = 0; j < VERT_ATTRIB_MAX; j++) { + for (j = 0; j < Elements(arrayObj->VertexAttrib); j++) { unbind(ctx, &arrayObj->VertexAttrib[j].BufferObj, bufObj); } |