From: Marta Lofstedt <marta.lofst...@intel.com> For GLES 3.1 to support Multisample textures it needs to be able to pass the sample count test.
Signed-off-by: Marta Lofstedt <marta.lofst...@intel.com> --- src/mesa/main/multisample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 816837b..dd18365 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -166,7 +166,7 @@ _mesa_check_sample_count(struct gl_context *ctx, GLenum target, * is greater than zero, then the error INVALID_OPERATION is generated." */ if (_mesa_is_gles3(ctx) && _mesa_is_enum_format_integer(internalFormat) - && samples > 0) { + && samples > 0 && (!_mesa_is_gles31(ctx))) { return GL_INVALID_OPERATION; } -- 1.9.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev