GRIM: fixed TinyGL draw sprites

This commit is contained in:
Pawel Kolodziejski 2014-12-28 17:10:56 +01:00
parent 2a6f23839f
commit a37e7bc204

View File

@ -782,7 +782,9 @@ void GfxTinyGL::drawSprite(const Sprite *sprite) {
tglDisable(TGL_LIGHTING);
if (g_grim->getGameType() == GType_GRIM) {
tglEnable(TGL_ALPHA_TEST);
// Disable Alpha Test, doesn't work the same as OpenGL
// It was enabled to sync with OpenGL renderer while TinyGL refactoring
//tglEnable(TGL_ALPHA_TEST);
tglAlphaFunc(TGL_GEQUAL, 0.5f);
} else if (sprite->_flags2 & Sprite::AlphaTest) {
tglEnable(TGL_ALPHA_TEST);