Skip to content
Snippets Groups Projects
Commit 777166cc authored by Marek Olšák's avatar Marek Olšák
Browse files

glthread: handle GL_*_ARRAY in glEnable/Disable


Surprisingly, the GL compatibility profile allows these in both
glEnableClientState and glEnable.

Fixes: 0b1dd185 - glthread: track which vertex array attribs are enabled

Acked-by: default avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <mesa/mesa!20824>
parent a4d813ba
No related branches found
No related tags found
No related merge requests found
......@@ -488,6 +488,18 @@ _mesa_glthread_Enable(struct gl_context *ctx, GLenum cap)
case GL_POLYGON_STIPPLE:
ctx->GLThread.PolygonStipple = true;
break;
case GL_VERTEX_ARRAY:
case GL_NORMAL_ARRAY:
case GL_COLOR_ARRAY:
case GL_TEXTURE_COORD_ARRAY:
case GL_INDEX_ARRAY:
case GL_EDGE_FLAG_ARRAY:
case GL_FOG_COORDINATE_ARRAY:
case GL_SECONDARY_COLOR_ARRAY:
case GL_POINT_SIZE_ARRAY_OES:
_mesa_glthread_ClientState(ctx, NULL, _mesa_array_to_attrib(ctx, cap),
true);
break;
}
}
......@@ -517,6 +529,18 @@ _mesa_glthread_Disable(struct gl_context *ctx, GLenum cap)
case GL_POLYGON_STIPPLE:
ctx->GLThread.PolygonStipple = false;
break;
case GL_VERTEX_ARRAY:
case GL_NORMAL_ARRAY:
case GL_COLOR_ARRAY:
case GL_TEXTURE_COORD_ARRAY:
case GL_INDEX_ARRAY:
case GL_EDGE_FLAG_ARRAY:
case GL_FOG_COORDINATE_ARRAY:
case GL_SECONDARY_COLOR_ARRAY:
case GL_POINT_SIZE_ARRAY_OES:
_mesa_glthread_ClientState(ctx, NULL, _mesa_array_to_attrib(ctx, cap),
false);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment