mesa/es3.1: Pass sample count check for multisampled textures

v3 : Removed space in comment.

Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Marta Lofstedt
2015-06-15 13:50:21 +02:00
committed by Tapani Pälli
parent 2ac171a7db
commit b6d014f0ba
+4 -1
View File
@@ -164,8 +164,11 @@ _mesa_check_sample_count(struct gl_context *ctx, GLenum target,
*
* "If internalformat is a signed or unsigned integer format and samples
* is greater than zero, then the error INVALID_OPERATION is generated."
*
* This restriction is relaxed for OpenGL ES 3.1.
*/
if (_mesa_is_gles3(ctx) && _mesa_is_enum_format_integer(internalFormat)
if ((ctx->API == API_OPENGLES2 && ctx->Version == 30) &&
_mesa_is_enum_format_integer(internalFormat)
&& samples > 0) {
return GL_INVALID_OPERATION;
}