diff --git a/src/Magnum/Magnum.h b/src/Magnum/Magnum.h index c865c576b..3d5f76771 100644 --- a/src/Magnum/Magnum.h +++ b/src/Magnum/Magnum.h @@ -639,7 +639,9 @@ template class Texture; typedef Texture<1> Texture1D; #endif typedef Texture<2> Texture2D; +#if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) typedef Texture<3> Texture3D; +#endif #ifndef MAGNUM_TARGET_GLES2 template class TextureArray; diff --git a/src/Magnum/Texture.h b/src/Magnum/Texture.h index 60fceade3..0f6d6ce01 100644 --- a/src/Magnum/Texture.h +++ b/src/Magnum/Texture.h @@ -1279,6 +1279,7 @@ typedef Texture<1> Texture1D; /** @brief Two-dimensional texture */ typedef Texture<2> Texture2D; +#if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) /** @brief Three-dimensional texture @@ -1286,6 +1287,7 @@ typedef Texture<2> Texture2D; @requires_webgl20 3D textures are not available in WebGL 1.0. */ typedef Texture<3> Texture3D; +#endif }