- 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:
parent
f1241099f8
commit
e19cd0bec3
4 changed files with 17 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue