Fixing ARGB4444 textures.
This commit is contained in:
parent
0e04e1c455
commit
4a11d5e6e2
|
@ -322,7 +322,7 @@ bool TextureCache::UploadTexture2D(GLuint texture, void* host_base,
|
||||||
case TextureFormat::k_4_4_4_4:
|
case TextureFormat::k_4_4_4_4:
|
||||||
internal_format = GL_RGBA4;
|
internal_format = GL_RGBA4;
|
||||||
format = GL_RGBA;
|
format = GL_RGBA;
|
||||||
type = GL_UNSIGNED_SHORT_4_4_4_4;
|
type = GL_UNSIGNED_SHORT_4_4_4_4_REV;
|
||||||
break;
|
break;
|
||||||
case TextureFormat::k_16_FLOAT:
|
case TextureFormat::k_16_FLOAT:
|
||||||
internal_format = GL_R16F;
|
internal_format = GL_R16F;
|
||||||
|
|
Loading…
Reference in New Issue