mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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 <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
2253a296c9
commit
704e764f06
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue