diff --git a/source/shared_lib/sources/graphics/gl/texture_gl.cpp b/source/shared_lib/sources/graphics/gl/texture_gl.cpp index 81617b748..d50367a63 100644 --- a/source/shared_lib/sources/graphics/gl/texture_gl.cpp +++ b/source/shared_lib/sources/graphics/gl/texture_gl.cpp @@ -644,6 +644,9 @@ void Texture3DGl::init(Filter filter, int maxAnisotropy) { if(forceCompressionDisabled == true || (pixmap.getPixelByteCount() > 0 && pixmap.getPixelByteCount() <= MIN_BYTES_TO_COMPRESS)) { glCompressionFormat = glInternalFormat; } + if(glCompressionFormat == GL_COMPRESSED_RGBA_FXT1_3DFX) { + glCompressionFormat = glInternalFormat; + } //pixel init var const uint8* pixels= pixmapInit? pixmap.getPixels(): NULL; @@ -739,10 +742,6 @@ void TextureCubeGl::init(Filter filter, int maxAnisotropy) { glCompressionFormat = glInternalFormat; } - if(glCompressionFormat == GL_COMPRESSED_RGBA_FXT1_3DFX) { - glCompressionFormat = glInternalFormat; - } - //pixel init var const uint8* pixels= pixmapInit? currentPixmap->getPixels(): NULL; GLenum target= GL_TEXTURE_CUBE_MAP_POSITIVE_X + i;