From e299250f949ca64893b7755667131eb100a160eb Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 29 Oct 2010 20:53:20 +0000 Subject: [PATCH] - try to add special texture compression types from GL_3DFX_texture_compression_FXT1 --- source/shared_lib/sources/graphics/gl/texture_gl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;