[Mesa-dev] [PATCH 21/31] mesa: don't flag _NEW_TRANSFORM for Transform.RasterPositionUnclipped
Marek Olšák
maraeo at gmail.com
Mon Jun 12 16:55:46 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
It's not a driver state, it's for glRasterPos.
---
src/mesa/main/enable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 10aa560..7955007 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -865,21 +865,21 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
ctx->NewDriverState |= ctx->DriverFlags.NewSampleShading;
ctx->Multisample.SampleShading = state;
break;
/* GL_IBM_rasterpos_clip */
case GL_RASTER_POSITION_UNCLIPPED_IBM:
if (ctx->API != API_OPENGL_COMPAT)
goto invalid_enum_error;
if (ctx->Transform.RasterPositionUnclipped == state)
return;
- FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+ FLUSH_VERTICES(ctx, 0);
ctx->Transform.RasterPositionUnclipped = state;
break;
/* GL_NV_point_sprite */
case GL_POINT_SPRITE_NV:
if (ctx->API != API_OPENGL_COMPAT && ctx->API != API_OPENGLES)
goto invalid_enum_error;
CHECK_EXTENSION2(NV_point_sprite, ARB_point_sprite, cap);
if (ctx->Point.PointSprite == state)
return;
--
2.7.4
More information about the mesa-dev
mailing list