diff options
author | Marek Olšák <[email protected]> | 2017-06-10 12:38:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | 0160a59f295462f77d01693e9515e283c55ec2da (patch) | |
tree | 14db911a19c3f74f4638d2f67b6355e7b632a567 /src/mesa | |
parent | df0f6a0af31c63e6b66657fbc01c0955558fc282 (diff) |
mesa: set driver flags for glPopAttrib(GL_ENABLE_BIT) properly
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/attrib.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 8d4a4f0bc59..43b58569013 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: |