From b1909ff55ab5f62804da8b934421ed61ca687b83 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 8 Jun 2007 10:22:44 +0000 Subject: [PATCH] From Jason Daly, "This changes the handling of textures in the OpenFlight loader. Currently, if the texture attribute file doesn't explicitly specify an internal format, the loader will force it to use GL_RGB, which keeps translucent textures (eg. GL_RGBA textures) from showing up properly. This patch changes the default behavior to simply use the image's format instead of forcing a particular format." --- src/osgPlugins/OpenFlight/PaletteRecords.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/OpenFlight/PaletteRecords.cpp b/src/osgPlugins/OpenFlight/PaletteRecords.cpp index 9a36dd358..c6cb59ea0 100644 --- a/src/osgPlugins/OpenFlight/PaletteRecords.cpp +++ b/src/osgPlugins/OpenFlight/PaletteRecords.cpp @@ -380,7 +380,7 @@ protected: break; case AttrData::INTERNAL_FORMAT_DEFAULT: default: - texture->setInternalFormat(GL_RGB); + // Do nothing, just use the image data format break; }