aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-02-25 12:57:22 +0100
committerErik Faye-Lund <[email protected]>2020-04-01 12:57:57 +0200
commite2dbd31dc0eb69f3a1df262842635c6ff8103d84 (patch)
tree84f6656918cad0743a7c2bcc3f7a3ade09888116 /src/mesa/main/enable.c
parent67a7022f83965795c5a5080f3ac5aedb7d9387b3 (diff)
mesa/main: clean up extension-check for GL_DEPTH_BOUNDS_TEST
Signed-off-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/329>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 09ac6ab5db3..50a809ebf64 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1092,9 +1092,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
/* GL_EXT_depth_bounds_test */
case GL_DEPTH_BOUNDS_TEST_EXT:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_EXT_depth_bounds_test(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(EXT_depth_bounds_test);
if (ctx->Depth.BoundsTest == state)
return;
FLUSH_VERTICES(ctx, ctx->DriverFlags.NewDepth ? 0 : _NEW_DEPTH);
@@ -1842,9 +1841,8 @@ _mesa_IsEnabled( GLenum cap )
/* GL_EXT_depth_bounds_test */
case GL_DEPTH_BOUNDS_TEST_EXT:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_EXT_depth_bounds_test(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(EXT_depth_bounds_test);
return ctx->Depth.BoundsTest;
/* GL_ARB_depth_clamp */