mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa/main: clean up extension-check for GL_DEPTH_BOUNDS_TEST
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/329>
This commit is contained in:
parent
67a7022f83
commit
e2dbd31dc0
1 changed files with 2 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue