Mesa (master): mesa/main: Add GL_IMAGE_FORMAT_COMPATIBILITY_TYPE to glGetTexParameterfv
Tapani Pälli
tpalli at kemper.freedesktop.org
Wed Aug 19 10:35:40 UTC 2015
Module: Mesa
Branch: master
Commit: 3df7856b4625f21ebf5465bad2556583b808c8bf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3df7856b4625f21ebf5465bad2556583b808c8bf
Author: Marta Lofstedt <marta.lofstedt at intel.com>
Date: Wed Aug 12 11:57:39 2015 +0200
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 at linux.intel.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
src/mesa/main/texparam.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index 5500eed..16739f1 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -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;
}
More information about the mesa-commit
mailing list