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."
This commit is contained in:
Robert Osfield
2007-06-08 10:22:44 +00:00
parent f57875ad02
commit b1909ff55a

View File

@@ -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;
}