mesa: fix CopyImageSubDataOES with GL_TEXTURE_EXTERNAL_OES

GL_TEXTURE_EXTERNAL_OES is allowed on GLES (any version) and glCopyImageSubDataOES
is implemented as an alias of CopyImageSubData.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21984>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2023-03-17 13:57:00 +01:00 committed by Marge Bot
parent 0c76e088f2
commit e272e59e40

View file

@ -100,6 +100,9 @@ prepare_target_err(struct gl_context *ctx, GLuint name, GLenum target,
break;
case GL_TEXTURE_EXTERNAL_OES:
/* Only exists in ES */
if (_mesa_is_gles(ctx))
break;
FALLTHROUGH;
case GL_TEXTURE_BUFFER:
default:
_mesa_error(ctx, GL_INVALID_ENUM,