From: Marta Lofstedt Date: Mon, 11 May 2015 13:03:56 +0000 (+0200) Subject: mesa/es3.1: Allow multisampled textures for GLES 3.1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=704e764f06e8e6ec75484e28271e502bbc4cf06a;p=mesa.git mesa/es3.1: Allow multisampled textures for GLES 3.1 GLES 3.1 must be allowed to create multisampled textures. Signed-off-by: Marta Lofstedt Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index a719c1c5d4c..841ec364020 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -5589,8 +5589,8 @@ _mesa_texture_image_multisample(struct gl_context *ctx, GLuint dims, GLenum sample_count_error; bool dsa = strstr(func, "ture") ? true : false; - if (!(ctx->Extensions.ARB_texture_multisample - && _mesa_is_desktop_gl(ctx))) { + if (!((ctx->Extensions.ARB_texture_multisample + && _mesa_is_desktop_gl(ctx))) && !_mesa_is_gles31(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); return; }