mesa: fix popping of texture state for GL_TEXTURE_BUFFER
authorBrian Paul <brianp@vmware.com>
Wed, 6 Apr 2011 18:45:21 +0000 (12:45 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Apr 2011 18:45:30 +0000 (12:45 -0600)
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=36032

src/mesa/main/attrib.c

index 340c06c979d9828e601e8593ea50452c6ddd8a0c..6a2f4870db9e51b5f135e3a7d80a7023251f8edd 100644 (file)
@@ -790,6 +790,8 @@ pop_texture_group(struct gl_context *ctx, struct texture_state *texstate)
                   !ctx->Extensions.MESA_texture_array) {
             continue;
          }
+         else if (obj->Target == GL_TEXTURE_BUFFER)
+            continue;
 
          target = obj->Target;