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;
/* 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;
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)