From 729e753acfe949023b412d69480e7e4a7cd8d592 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 20 Dec 2014 21:38:36 +0600 Subject: [PATCH] Fix load paletted backgrounds. Fixed logo in Dragon Sword. --- Textures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Textures.cpp b/Textures.cpp index 058bf9b6..0fc6dde6 100644 --- a/Textures.cpp +++ b/Textures.cpp @@ -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;