mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
GL: Swap R/B in A1R5G5B5 correctly.
Fixes Terraria, thanks @raven02. How did I miss this, it was not passing the test after all...
This commit is contained in:
parent
c0f55ae1e7
commit
7992115f6c
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public:
|
|||
checkForGlError("GLTexture::Init() -> glPixelStorei");
|
||||
|
||||
// TODO: texture swizzling
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tex.GetWidth(), tex.GetHeight(), 0, GL_RGBA, GL_UNSIGNED_SHORT_1_5_5_5_REV, pixels);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tex.GetWidth(), tex.GetHeight(), 0, GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV, pixels);
|
||||
checkForGlError("GLTexture::Init() -> glTexImage2D");
|
||||
|
||||
glPixelStorei(GL_UNPACK_SWAP_BYTES, GL_FALSE);
|
||||
|
|
Loading…
Add table
Reference in a new issue