- Fixed: DFrameBuffer::CopyPixelData copied data as RGBA instead of BGRA.

- Temporarily changed FPNGTexture and FDDSTexture to always create True Color
  native textures to preserve the original colors.


SVN r650 (trunk)
This commit is contained in:
Christoph Oelckers 2007-12-27 11:53:09 +00:00
commit e19cd0bec3
4 changed files with 17 additions and 4 deletions

View file

@ -270,12 +270,17 @@ void FPNGTexture::Unload ()
FTextureFormat FPNGTexture::GetFormat()
{
#if 0
switch (ColorType)
{
case 3: return TEX_Pal;
case 0: return TEX_Gray;
default: return TEX_RGB;
}
#else
// For now, create a true color texture to preserve all colors.
return TEX_RGB;
#endif
}
const BYTE *FPNGTexture::GetColumn (unsigned int column, const Span **spans_out)