[Mesa-dev] [PATCH] i965: Ignore glPointSize when GL_POINT_SIZE_ARRAY_OES is enabled

Plamena Manolova plamena.manolova at intel.com
Wed Mar 2 08:58:46 UTC 2016


When a user defines a point size array and enables it, the point
size value set via glPointSize should be ignored. To achieve this,
we can simply set ctx->VertexProgram.PointSizeEnabled whenever
GL_POINT_SIZE_ARRAY_OES is set so that the right point size is
used.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42187
Signed-off-by: Plamena Manolova <plamena.manolova at intel.com>
---
 src/mesa/main/enable.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 3985457..ecc04f4 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -105,6 +105,7 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state)
       case GL_POINT_SIZE_ARRAY_OES:
          var = &vao->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Enabled;
          flag = VERT_BIT_POINT_SIZE;
+         ctx->VertexProgram.PointSizeEnabled = state;
          break;
 
       /* GL_NV_primitive_restart */
-- 
2.4.3



More information about the mesa-dev mailing list