[Mesa-dev] [PATCH 1/2] mesa: add missing case in _mesa_GetTexParameterfv()
Tapani Pälli
tapani.palli at intel.com
Wed Feb 20 03:00:07 PST 2013
missing case GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES is required
by OES_EGL_image_external extension.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
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 b6afd35..bc66bb3 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -1444,6 +1444,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;
--
1.8.1.2
More information about the mesa-dev
mailing list