mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
I think this should fix a compilation error with OpenGL ES
This commit is contained in:
parent
9586ccc1f6
commit
fb70cee298
@ -8828,7 +8828,6 @@ upload_texture_image(CLP(TextureContext) *gtc,
|
|||||||
break;
|
break;
|
||||||
#endif // OPENGLES // OpenGL ES will fall through.
|
#endif // OPENGLES // OpenGL ES will fall through.
|
||||||
|
|
||||||
#ifndef OPENGLES_1 // 3-d textures not supported by OpenGL ES 1. Fall through.
|
|
||||||
#ifdef OPENGLES_2
|
#ifdef OPENGLES_2
|
||||||
case GL_TEXTURE_3D_OES:
|
case GL_TEXTURE_3D_OES:
|
||||||
#endif
|
#endif
|
||||||
@ -8852,6 +8851,7 @@ upload_texture_image(CLP(TextureContext) *gtc,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OPENGLES
|
||||||
case GL_TEXTURE_2D_ARRAY_EXT:
|
case GL_TEXTURE_2D_ARRAY_EXT:
|
||||||
if (_supports_2d_texture_array) {
|
if (_supports_2d_texture_array) {
|
||||||
if (image_compression == Texture::CM_off) {
|
if (image_compression == Texture::CM_off) {
|
||||||
@ -8868,7 +8868,7 @@ upload_texture_image(CLP(TextureContext) *gtc,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif // OPENGLES // OpenGL ES will fall through.
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (image_compression == Texture::CM_off) {
|
if (image_compression == Texture::CM_off) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user