mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
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: 74ec39f66d ("mesa: add INTEL_blackhole_render")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/329>
This commit is contained in:
parent
1e3b74ee73
commit
70b6972140
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue