mesa/es3.1: Allow enable of GL_SAMPLE_MASK
GLES 3.1 must be able to enable GL_SAMPLE_MASK. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
d74645d3ac
commit
0fe81a25f7
|
@ -1603,7 +1603,7 @@ _mesa_IsEnabled( GLenum cap )
|
||||||
|
|
||||||
/* ARB_texture_multisample */
|
/* ARB_texture_multisample */
|
||||||
case GL_SAMPLE_MASK:
|
case GL_SAMPLE_MASK:
|
||||||
if (!_mesa_is_desktop_gl(ctx))
|
if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles31(ctx))
|
||||||
goto invalid_enum_error;
|
goto invalid_enum_error;
|
||||||
CHECK_EXTENSION(ARB_texture_multisample);
|
CHECK_EXTENSION(ARB_texture_multisample);
|
||||||
return ctx->Multisample.SampleMask;
|
return ctx->Multisample.SampleMask;
|
||||||
|
|
Loading…
Reference in New Issue