Fixed compilation under irrlicht 1.6

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-01-07 23:23:00 +00:00
parent a7a802b918
commit f54b6c96a7

View File

@ -250,7 +250,9 @@ void render(float elapsed_time)
g_skin->drawBGFadeColor();
}
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
g_driver->enableMaterial2D();
#endif
if (gamestate == MENU || gamestate == INGAME_MENU)
{
@ -270,7 +272,9 @@ void render(float elapsed_time)
RaceManager::getWorld()->getRaceGUI()->renderGlobal(elapsed_time);
}
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
g_driver->enableMaterial2D(false);
#endif
} // render
// -----------------------------------------------------------------------------