[Mesa-dev] [PATCH 7/9] mesa/es3.1: Allow query of GL_TEXTURE_MULTISAMPLE
Marta Lofstedt
marta.lofstedt at linux.intel.com
Mon May 11 06:03:55 PDT 2015
From: Marta Lofstedt <marta.lofstedt at intel.com>
GLES 3.1 must allow a query for GL_TEXTURE_MULTISAMPLED.
Signed-off-by: Marta Lofstedt <marta.lofstedt at intel.com>
---
src/mesa/main/formatquery.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 7741cab..a6c8971 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -74,7 +74,9 @@ _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
case GL_TEXTURE_2D_MULTISAMPLE:
case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
/* These enums are only valid if ARB_texture_multisample is supported */
- if (_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_texture_multisample)
+ if ((_mesa_is_desktop_gl(ctx) &&
+ ctx->Extensions.ARB_texture_multisample) ||
+ _mesa_is_gles31(ctx))
break;
default:
--
1.9.1
More information about the mesa-dev
mailing list