mesa/es3.1: Allow query of GL_TEXTURE_MULTISAMPLE
GLES 3.1 must allow a query for GL_TEXTURE_MULTISAMPLE. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
committed by
Tapani Pälli
parent
0fe81a25f7
commit
2253a296c9
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user