mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
mesa: add missing case in _mesa_GetTexParameterfv()
missing case GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES is required
by OES_EGL_image_external extension.
Note: This is a candidate for the stable branches.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 331967c773)
This commit is contained in:
parent
2b8a431d39
commit
b1b2443ade
1 changed files with 6 additions and 0 deletions
|
|
@ -1432,6 +1432,12 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
|
|||
*params = (GLfloat) obj->Immutable;
|
||||
break;
|
||||
|
||||
case GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES:
|
||||
if (!_mesa_is_gles(ctx) || !ctx->Extensions.OES_EGL_image_external)
|
||||
goto invalid_pname;
|
||||
*params = obj->RequiredTextureImageUnits;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_SRGB_DECODE_EXT:
|
||||
if (!ctx->Extensions.EXT_texture_sRGB_decode)
|
||||
goto invalid_pname;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue