mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
GRAPHICS: Use RGBA for all textures [OpenGLS]
This commit is contained in:
parent
2c936f0334
commit
00e72387e0
@ -561,7 +561,6 @@ void GfxOpenGLS::drawModelFace(const Mesh *mesh, const MeshFace *face) {
|
||||
}
|
||||
|
||||
void GfxOpenGLS::drawSprite(const Sprite *sprite) {
|
||||
return;
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
_spriteProgram->use();
|
||||
@ -674,10 +673,10 @@ void GfxOpenGLS::createMaterial(Texture *material, const char *data, const CMap
|
||||
} else { // The only other colorFormat we load right now is BGR
|
||||
#ifdef USE_GLES2
|
||||
format = GL_RGB;
|
||||
internalFormat = GL_RGB;
|
||||
internalFormat = GL_RGBA;
|
||||
#else
|
||||
format = GL_BGR;
|
||||
internalFormat = GL_RGB;
|
||||
internalFormat = GL_RGBA;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,6 @@ void main()
|
||||
#ifdef GL_ES
|
||||
texColor.rgba = texColor.bgra;
|
||||
#endif
|
||||
outColor.rgb *= texColor.rgb;
|
||||
outColor.rgba *= texColor.rgba;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user