/* This was added with ARB_vertex_program, but it is also used with
* GLSL vertex shaders on desktop.
*/
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_vertex_program(ctx) &&
+ ctx->API != API_OPENGL_CORE)
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_vertex_program);
if (ctx->VertexProgram.PointSizeEnabled == state)
return;
FLUSH_VERTICES(ctx, _NEW_PROGRAM);
/* This was added with ARB_vertex_program, but it is also used with
* GLSL vertex shaders on desktop.
*/
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_vertex_program(ctx) &&
+ ctx->API != API_OPENGL_CORE)
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_vertex_program);
return ctx->VertexProgram.PointSizeEnabled;
case GL_VERTEX_PROGRAM_TWO_SIDE_ARB:
if (!_mesa_has_ARB_vertex_program(ctx))