mesa: set driver flags for glPopAttrib(GL_ENABLE_BIT) properly
authorMarek Olšák <marek.olsak@amd.com>
Sat, 10 Jun 2017 10:38:13 +0000 (12:38 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/attrib.c

index 8d4a4f0bc59f060022308d7e986468722891a4b2..43b585690135740753ba1bbc2e320e0902411e74 100644 (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: