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:
committed by
Tapani Pälli
parent
3b1e283d88
commit
3df7856b46
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user