summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-02-25 13:00:47 +0100
committerErik Faye-Lund <[email protected]>2020-04-01 12:57:57 +0200
commit0006dfbaed1376b88e1f2eadbd2da3ba3cd86ef3 (patch)
tree1f2e0a6c87d0e6200b1029a28ae9d535d2ca8288 /src/mesa
parent994675b24d74e9092d9b41541436e911ae8faf18 (diff)
mesa/main: clean up extension-check for GL_TEXTURE_CUBE_MAP_SEAMLESS
Signed-off-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/329>
Diffstat (limited to 'src/mesa')
-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 6495d4154c2..b462b2b72bf 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1147,9 +1147,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
break;
case GL_TEXTURE_CUBE_MAP_SEAMLESS:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_seamless_cube_map(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_seamless_cube_map);
if (ctx->Texture.CubeMapSeamless != state) {
FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT);
ctx->Texture.CubeMapSeamless = state;
@@ -1866,9 +1865,8 @@ _mesa_IsEnabled( GLenum cap )
return ctx->ATIFragmentShader.Enabled;
case GL_TEXTURE_CUBE_MAP_SEAMLESS:
- if (!_mesa_is_desktop_gl(ctx))
+ if (!_mesa_has_ARB_seamless_cube_map(ctx))
goto invalid_enum_error;
- CHECK_EXTENSION(ARB_seamless_cube_map);
return ctx->Texture.CubeMapSeamless;
case GL_RASTERIZER_DISCARD: