From b58029f62b1e396018551b8181b17eed8d3eb40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 23 Jul 2017 00:24:45 +0200 Subject: [PATCH] Cube map arrays *are* in ES now. --- src/Magnum/AbstractTexture.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Magnum/AbstractTexture.cpp b/src/Magnum/AbstractTexture.cpp index be8fd3b95..93feeed46 100644 --- a/src/Magnum/AbstractTexture.cpp +++ b/src/Magnum/AbstractTexture.cpp @@ -1310,14 +1310,17 @@ void AbstractTexture::storageImplementationFallback(GLsizei levels, TextureForma #ifndef MAGNUM_TARGET_GLES2 /* Array texture is not scaled in "layer" dimension */ - #ifndef MAGNUM_TARGET_GLES - else if(_target == GL_TEXTURE_2D_ARRAY || _target == GL_TEXTURE_CUBE_MAP_ARRAY) - #else - else if(_target == GL_TEXTURE_2D_ARRAY) - #endif + else if(_target == GL_TEXTURE_2D_ARRAY || _target == + #ifndef MAGNUM_TARGET_GLES + GL_TEXTURE_CUBE_MAP_ARRAY + #else + GL_TEXTURE_CUBE_MAP_ARRAY_EXT + #endif + ) { for(GLsizei level = 0; level != levels; ++level) DataHelper<3>::setImage(*this, level, internalFormat, ImageView3D{format, type, Vector3i{Math::max(Vector2i{1}, size.xy() >> level), size.z()}}); + } #endif /* No other targets are available */