summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/enable.c8
-rw-r--r--src/mesa/main/extensions_table.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index b5e59b77751..386556edeed 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1004,9 +1004,9 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
break;
case GL_DEPTH_CLAMP:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_depth_clamp(ctx) &&
+ !_mesa_has_EXT_depth_clamp(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_depth_clamp, cap);
if (ctx->Transform.DepthClampNear == state &&
ctx->Transform.DepthClampFar == state)
return;
@@ -1704,9 +1704,9 @@ _mesa_IsEnabled( GLenum cap )
/* GL_ARB_depth_clamp */
case GL_DEPTH_CLAMP:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_depth_clamp(ctx) &&
+ !_mesa_has_EXT_depth_clamp(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_depth_clamp);
return ctx->Transform.DepthClampNear ||
ctx->Transform.DepthClampFar;
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index b0492fed698..05ed418d750 100644
--- a/src/mesa/main/extensions_table.h
+++ b/src/mesa/main/extensions_table.h
@@ -218,6 +218,7 @@ EXT(EXT_compressed_ETC1_RGB8_sub_texture , OES_compressed_ETC1_RGB8_texture
EXT(EXT_copy_image , OES_copy_image , x , x , x , 30, 2014)
EXT(EXT_copy_texture , dummy_true , GLL, x , x , x , 1995)
EXT(EXT_depth_bounds_test , EXT_depth_bounds_test , GLL, GLC, x , x , 2002)
+EXT(EXT_depth_clamp , ARB_depth_clamp , x , x , x , ES2, 2019)
EXT(EXT_discard_framebuffer , dummy_true , x , x , ES1, ES2, 2009)
EXT(EXT_disjoint_timer_query , EXT_disjoint_timer_query , x , x , x , ES2, 2016)
EXT(EXT_draw_buffers , dummy_true , x , x , x , ES2, 2012)