mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 04:20:18 +01:00
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:
parent
0c76e088f2
commit
e272e59e40
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue