From George Tarantilils, add missing handling of alpha channel.

This commit is contained in:
Robert Osfield 2004-05-25 20:40:26 +00:00
parent 9990650cc9
commit 9236f6daa8

View File

@ -280,6 +280,11 @@ osg::Image* ReadDDSFile(std::istream& _istream)
internalFormat = usingAlpha ? GL_LUMINANCE_ALPHA : GL_LUMINANCE;
pixelFormat = usingAlpha ? GL_LUMINANCE_ALPHA : GL_LUMINANCE;
}
else if(ddsd.ddpfPixelFormat.dwFlags & DDPF_ALPHA)
{
internalFormat = GL_ALPHA;
pixelFormat = GL_ALPHA;
}
// Compressed formats
else if(ddsd.ddpfPixelFormat.dwFlags & DDPF_FOURCC)
{