diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index b48c1185d6c..7c8b93b6ed4 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -919,41 +919,8 @@ _mesa_PopAttrib(void) } } - if (mask & GL_ENABLE_BIT) { + if (mask & GL_ENABLE_BIT) pop_enable_group(ctx, &attr->Enable); - ctx->NewState |= _NEW_COLOR | - _NEW_DEPTH | - _NEW_FOG | - _NEW_LIGHT | - _NEW_LINE | - _NEW_POINT | - _NEW_POLYGON | - _NEW_SCISSOR | - _NEW_TRANSFORM | - _NEW_TEXTURE_STATE | - _NEW_BUFFERS | - _NEW_MULTISAMPLE | - _NEW_PROGRAM | - _NEW_FRAG_CLAMP; - ctx->NewDriverState |= ctx->DriverFlags.NewAlphaTest | - ctx->DriverFlags.NewBlend | - ctx->DriverFlags.NewClipPlaneEnable | - ctx->DriverFlags.NewDepth | - ctx->DriverFlags.NewDepthClamp | - ctx->DriverFlags.NewFragClamp | - ctx->DriverFlags.NewFramebufferSRGB | - ctx->DriverFlags.NewLineState | - ctx->DriverFlags.NewLogicOp | - ctx->DriverFlags.NewMultisampleEnable | - ctx->DriverFlags.NewPolygonState | - ctx->DriverFlags.NewSampleAlphaToXEnable | - ctx->DriverFlags.NewSampleMask | - ctx->DriverFlags.NewSampleShading | - ctx->DriverFlags.NewScissorTest | - ctx->DriverFlags.NewStencil | - ctx->DriverFlags.NewNvConservativeRasterization | - ctx->DriverFlags.NewTileRasterOrder; - } if (mask & GL_EVAL_BIT) { memcpy(&ctx->Eval, &attr->Eval, sizeof(struct gl_eval_attrib));