mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
mesa: Allow glGetTexParameter of GL_TEXTURE_SRGB_DECODE_EXT
This was already (correctly) supported for glGetSamplerParameter paths.
NOTE: This is a candidate for stable branches.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit ae3023e967)
This commit is contained in:
parent
8d06574d2b
commit
cf81335712
1 changed files with 12 additions and 0 deletions
|
|
@ -1448,6 +1448,12 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
|
|||
*params = (GLfloat) obj->Immutable;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_SRGB_DECODE_EXT:
|
||||
if (!ctx->Extensions.EXT_texture_sRGB_decode)
|
||||
goto invalid_pname;
|
||||
*params = (GLfloat) obj->Sampler.sRGBDecode;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto invalid_pname;
|
||||
}
|
||||
|
|
@ -1622,6 +1628,12 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
|
|||
*params = obj->RequiredTextureImageUnits;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_SRGB_DECODE_EXT:
|
||||
if (!ctx->Extensions.EXT_texture_sRGB_decode)
|
||||
goto invalid_pname;
|
||||
*params = obj->Sampler.sRGBDecode;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto invalid_pname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue