mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mesa/main: Add GL_IMAGE_FORMAT_COMPATIBILITY_TYPE to glGetTexParameterfv
According to Open GL ES 3.1 specification, section 8.10.2 GL_IMAGE_FORMAT_COMPATIBILITY_TYPE should be supported by glGetTexParameterfv. Signed-off-by: Marta Lofstedt <marta.lofstedt@linux.intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
3b1e283d88
commit
3df7856b46
1 changed files with 6 additions and 0 deletions
|
|
@ -1908,6 +1908,12 @@ get_tex_parameterfv(struct gl_context *ctx,
|
|||
*params = (GLfloat) obj->Sampler.sRGBDecode;
|
||||
break;
|
||||
|
||||
case GL_IMAGE_FORMAT_COMPATIBILITY_TYPE:
|
||||
if (!ctx->Extensions.ARB_shader_image_load_store)
|
||||
goto invalid_pname;
|
||||
*params = (GLfloat) obj->ImageFormatCompatibilityType;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto invalid_pname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue