diff options
author | Erik Faye-Lund <[email protected]> | 2019-02-25 12:44:55 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2020-04-01 12:57:57 +0200 |
commit | a5e781aa8085ef5f6fcfbf3dc09fc8899e64e13d (patch) | |
tree | 5ad6d652efca46c2f6c69537ba32133d79ac2f7c | |
parent | 12e228fc9c7aa06809797d4b706ee05a2eb7c735 (diff) |
mesa/main: clean up extension-check for GL_VERTEX_PROGRAM_TWO_SIDE
Signed-off-by: Erik Faye-Lund <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/329>
-rw-r--r-- | src/mesa/main/enable.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 2fddd1cb4fa..ad743ba7b98 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1048,9 +1048,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) ctx->VertexProgram.PointSizeEnabled = state; break; case GL_VERTEX_PROGRAM_TWO_SIDE_ARB: - if (ctx->API != API_OPENGL_COMPAT) + if (!_mesa_has_ARB_vertex_program(ctx)) goto invalid_enum_error; - CHECK_EXTENSION(ARB_vertex_program); if (ctx->VertexProgram.TwoSideEnabled == state) return; FLUSH_VERTICES(ctx, _NEW_PROGRAM); @@ -1822,9 +1821,8 @@ _mesa_IsEnabled( GLenum cap ) CHECK_EXTENSION(ARB_vertex_program); return ctx->VertexProgram.PointSizeEnabled; case GL_VERTEX_PROGRAM_TWO_SIDE_ARB: - if (ctx->API != API_OPENGL_COMPAT) + if (!_mesa_has_ARB_vertex_program(ctx)) goto invalid_enum_error; - CHECK_EXTENSION(ARB_vertex_program); return ctx->VertexProgram.TwoSideEnabled; /* GL_NV_texture_rectangle */ |