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:
parent
a7a802b918
commit
f54b6c96a7
@ -250,7 +250,9 @@ void render(float elapsed_time)
|
|||||||
g_skin->drawBGFadeColor();
|
g_skin->drawBGFadeColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
|
||||||
g_driver->enableMaterial2D();
|
g_driver->enableMaterial2D();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gamestate == MENU || gamestate == INGAME_MENU)
|
if (gamestate == MENU || gamestate == INGAME_MENU)
|
||||||
{
|
{
|
||||||
@ -270,7 +272,9 @@ void render(float elapsed_time)
|
|||||||
RaceManager::getWorld()->getRaceGUI()->renderGlobal(elapsed_time);
|
RaceManager::getWorld()->getRaceGUI()->renderGlobal(elapsed_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
|
||||||
g_driver->enableMaterial2D(false);
|
g_driver->enableMaterial2D(false);
|
||||||
|
#endif
|
||||||
} // render
|
} // render
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user