I think this should fix a compilation error with OpenGL ES

This commit is contained in:
rdb 2010-05-12 18:21:58 +00:00
parent 9586ccc1f6
commit fb70cee298

View File

@ -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) {