mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix load paletted backgrounds.
Fixed logo in Dragon Sword.
This commit is contained in:
parent
0df812257c
commit
729e753acf
|
@ -751,7 +751,7 @@ void TextureCache::_loadBackground(CachedTexture *pTexture)
|
|||
GLuint glInternalFormat;
|
||||
GLenum glType;
|
||||
|
||||
const TextureLoadParameters & loadParams = imageFormat[gDP.otherMode.textureLUT][pTexture->size][pTexture->format];
|
||||
const TextureLoadParameters & loadParams = imageFormat[pTexture->format == 2 ? G_TT_RGBA16 : G_TT_NONE][pTexture->size][pTexture->format];
|
||||
if (((loadParams.autoFormat == GL_RGBA) || (m_bitDepth == 2)) && (m_bitDepth != 0)) {
|
||||
pTexture->textureBytes = (pTexture->realWidth * pTexture->realHeight) << 2;
|
||||
GetTexel = loadParams.Get32;
|
||||
|
|
Loading…
Reference in New Issue
Block a user