diff --git a/src/Magnum/Implementation/TextureState.cpp b/src/Magnum/Implementation/TextureState.cpp index 7bc771d66..5b9988bb4 100644 --- a/src/Magnum/Implementation/TextureState.cpp +++ b/src/Magnum/Implementation/TextureState.cpp @@ -114,13 +114,16 @@ TextureState::TextureState(Context& context, std::vector& extension #endif /* Texture storage implementation */ - #ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES if(context.isExtensionSupported()) + #elif defined(MAGNUM_TARGET_GLES2) + if(context.isExtensionSupported()) #endif { #ifndef MAGNUM_TARGET_GLES extensions.push_back(Extensions::GL::ARB::texture_storage::string()); + #elif defined(MAGNUM_TARGET_GLES2) + extensions.push_back(Extensions::GL::EXT::texture_storage::string()); #endif #ifndef MAGNUM_TARGET_GLES @@ -138,12 +141,8 @@ TextureState::TextureState(Context& context, std::vector& extension storage3DImplementation = &AbstractTexture::storageImplementationDefault; } } - #endif #ifndef MAGNUM_TARGET_GLES3 - #ifndef MAGNUM_TARGET_GLES - else - #endif - { + else { #ifndef MAGNUM_TARGET_GLES storage1DImplementation = &AbstractTexture::storageImplementationFallback; #endif