diff options
author | Erik Faye-Lund <[email protected]> | 2020-02-19 12:12:27 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2020-04-01 12:57:43 +0200 |
commit | 70b6972140e74037109b7f8c57d442c8316d09dc (patch) | |
tree | df490e83b8b3a29ecc0a15248b0a0a882f485f30 /src/mesa | |
parent | 1e3b74ee73f897bfe50c9bf27458c95870d8c317 (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.c | 3 |
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: |