From 0160a59f295462f77d01693e9515e283c55ec2da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 10 Jun 2017 12:38:13 +0200 Subject: [PATCH] mesa: set driver flags for glPopAttrib(GL_ENABLE_BIT) properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul Reviewed-by: Timothy Arceri --- src/mesa/main/attrib.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 8d4a4f0..43b5856 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1105,6 +1105,20 @@ _mesa_PopAttrib(void) enable = (const struct gl_enable_attrib *) attr->data; pop_enable_group(ctx, enable); ctx->NewState |= _NEW_ALL; + ctx->NewDriverState |= ctx->DriverFlags.NewAlphaTest | + ctx->DriverFlags.NewBlend | + ctx->DriverFlags.NewClipPlaneEnable | + ctx->DriverFlags.NewDepth | + ctx->DriverFlags.NewDepthClamp | + ctx->DriverFlags.NewFramebufferSRGB | + ctx->DriverFlags.NewLineState | + ctx->DriverFlags.NewLogicOp | + ctx->DriverFlags.NewMultisampleEnable | + ctx->DriverFlags.NewPolygonState | + ctx->DriverFlags.NewSampleAlphaToXEnable | + ctx->DriverFlags.NewSampleMask | + ctx->DriverFlags.NewScissorTest | + ctx->DriverFlags.NewStencil; } break; case GL_EVAL_BIT: -- 2.7.4