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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user