EMI: Avoid using TIL-specific code for TGAs

This commit is contained in:
Einar Johan Trøan Sømåen 2012-11-26 17:37:56 +01:00
parent 4470144b83
commit 6cc1d9e6a0

View file

@ -807,7 +807,10 @@ void GfxOpenGL::createBitmap(BitmapData *bitmap) {
void GfxOpenGL::drawBitmap(const Bitmap *bitmap, int dx, int dy, bool initialDraw) {
if (g_grim->getGameType() == GType_MONKEY4) {
// The PS2 version of EMI uses a TGA for it's splash-screen
// avoid using the TIL-code below for that, by checking
// numImages here:
if (g_grim->getGameType() == GType_MONKEY4 && bitmap->_data->_numImages > 1) {
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();