mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
parent
041e63c67a
commit
f661fc0be7
16
Textures.cpp
16
Textures.cpp
|
@ -805,6 +805,14 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture)
|
||||||
else
|
else
|
||||||
GetTexel = GetCI8IA_RGBA8888;
|
GetTexel = GetCI8IA_RGBA8888;
|
||||||
|
|
||||||
|
glInternalFormat = GL_RGBA;
|
||||||
|
glType = GL_UNSIGNED_BYTE;
|
||||||
|
} else if ((_pTexture->format == G_IM_FMT_IA || _pTexture->format == G_IM_FMT_I) && (gDP.otherMode.textureLUT == G_IM_FMT_CI)) {
|
||||||
|
if (_pTexture->size == G_IM_SIZ_4b)
|
||||||
|
GetTexel = GetCI4RGBA_RGBA8888;
|
||||||
|
else
|
||||||
|
GetTexel = GetCI8RGBA_RGBA8888;
|
||||||
|
|
||||||
glInternalFormat = GL_RGBA;
|
glInternalFormat = GL_RGBA;
|
||||||
glType = GL_UNSIGNED_BYTE;
|
glType = GL_UNSIGNED_BYTE;
|
||||||
} else {
|
} else {
|
||||||
|
@ -823,6 +831,14 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture)
|
||||||
|
|
||||||
glInternalFormat = GL_RGBA4;
|
glInternalFormat = GL_RGBA4;
|
||||||
glType = GL_UNSIGNED_SHORT_4_4_4_4;
|
glType = GL_UNSIGNED_SHORT_4_4_4_4;
|
||||||
|
} else if ((_pTexture->format == G_IM_FMT_IA || _pTexture->format == G_IM_FMT_I) && (gDP.otherMode.textureLUT == G_IM_FMT_CI)) {
|
||||||
|
if (_pTexture->size == G_IM_SIZ_4b)
|
||||||
|
GetTexel = GetCI4RGBA_RGBA5551;
|
||||||
|
else
|
||||||
|
GetTexel = GetCI8RGBA_RGBA5551;
|
||||||
|
|
||||||
|
glInternalFormat = GL_RGB5_A1;
|
||||||
|
glType = GL_UNSIGNED_SHORT_5_5_5_1;
|
||||||
} else {
|
} else {
|
||||||
GetTexel = imageFormat[_pTexture->size][_pTexture->format].Get16;
|
GetTexel = imageFormat[_pTexture->size][_pTexture->format].Get16;
|
||||||
glInternalFormat = imageFormat[_pTexture->size][_pTexture->format].glInternalFormat16;
|
glInternalFormat = imageFormat[_pTexture->size][_pTexture->format].glInternalFormat16;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user