mesa: set driver flags for glPopAttrib(GL_ENABLE_BIT) properly

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Marek Olšák
2017-06-10 12:38:13 +02:00
parent df0f6a0af3
commit 0160a59f29
+14
View File
@@ -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: