Restrict `GL_TEXTURE_EXTERNAL_OES` to Android platform
This commit is contained in:
parent
78f0cf40cb
commit
7c559afe29
|
@ -565,7 +565,11 @@ void RasterizerStorageGLES2::texture_allocate(RID p_texture, int p_width, int p_
|
|||
texture->images.resize(1);
|
||||
} break;
|
||||
case VS::TEXTURE_TYPE_EXTERNAL: {
|
||||
#ifdef ANDROID_ENABLED
|
||||
texture->target = _GL_TEXTURE_EXTERNAL_OES;
|
||||
#else
|
||||
texture->target = GL_TEXTURE_2D;
|
||||
#endif
|
||||
texture->images.resize(0);
|
||||
} break;
|
||||
case VS::TEXTURE_TYPE_CUBEMAP: {
|
||||
|
|
|
@ -666,7 +666,11 @@ void RasterizerStorageGLES3::texture_allocate(RID p_texture, int p_width, int p_
|
|||
texture->images.resize(1);
|
||||
} break;
|
||||
case VS::TEXTURE_TYPE_EXTERNAL: {
|
||||
#ifdef ANDROID_ENABLED
|
||||
texture->target = _GL_TEXTURE_EXTERNAL_OES;
|
||||
#else
|
||||
texture->target = GL_TEXTURE_2D;
|
||||
#endif
|
||||
texture->images.resize(0);
|
||||
} break;
|
||||
case VS::TEXTURE_TYPE_CUBEMAP: {
|
||||
|
|
Loading…
Reference in New Issue