From 53245fffc022e5fc18c847e799f65c6b91e7378a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 6 Apr 2011 12:45:21 -0600 Subject: mesa: fix popping of texture state for GL_TEXTURE_BUFFER Fixes http://bugs.freedesktop.org/show_bug.cgi?id=36032 --- src/mesa/main/attrib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 340c06c979d..6a2f4870db9 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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; -- cgit v1.2.3