From 268730cfaebdcfe953f739c7c916f3c6df3ec9ad Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 29 Oct 2010 20:44:21 +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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/shared_lib/sources/graphics/gl/texture_gl.cpp b/source/shared_lib/sources/graphics/gl/texture_gl.cpp index 99837f02..81617b74 100644 --- a/source/shared_lib/sources/graphics/gl/texture_gl.cpp +++ b/source/shared_lib/sources/graphics/gl/texture_gl.cpp @@ -739,6 +739,10 @@ 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;