aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-02-19 12:12:27 +0100
committerErik Faye-Lund <[email protected]>2020-04-01 12:57:43 +0200
commit70b6972140e74037109b7f8c57d442c8316d09dc (patch)
treedf490e83b8b3a29ecc0a15248b0a0a882f485f30 /src/mesa
parent1e3b74ee73f897bfe50c9bf27458c95870d8c317 (diff)
mesa/main: correct extension-checks for GL_BLACKHOLE_RENDER_INTEL
KHR_blend_equation_advanced_coherent isn't exposed on OpenGL ES 1.x nor OpenGL versions prior to 30, so we shouldn't allow to query its enum-states there either. Fixes: 74ec39f66d5 ("mesa: add INTEL_blackhole_render") Reviewed-by: Lionel Landwerlin <[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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 573643b419b..f41f6185796 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1969,7 +1969,8 @@ _mesa_IsEnabled( GLenum cap )
return ctx->TileRasterOrderIncreasingY;
case GL_BLACKHOLE_RENDER_INTEL:
- CHECK_EXTENSION(INTEL_blackhole_render);
+ if (!_mesa_has_INTEL_blackhole_render(ctx))
+ goto invalid_enum_error;
return ctx->IntelBlackholeRender;
default: