diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 8179d24a7..e36ee6dbf 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -174,6 +174,13 @@ void IrrDriver::initDevice() m_video_driver = m_device->getVideoDriver(); const std::string &font = file_manager->getFontFile("DomesticManners.xml"); m_race_font = m_gui_env->getFont(font.c_str()); + +#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7) + video::SMaterial& material2D = m_video_driver->getMaterial2D(); + material2D.TextureLayer[0].BilinearFilter=true; + material2D.AntiAliasing=video::EAAM_FULL_BASIC; + //m_video_driver->enableMaterial2D(); +#endif } diff --git a/src/guiengine/engine.cpp b/src/guiengine/engine.cpp index 8fc4f1428..396faf92a 100644 --- a/src/guiengine/engine.cpp +++ b/src/guiengine/engine.cpp @@ -250,6 +250,8 @@ void render(float elapsed_time) g_skin->drawBGFadeColor(); } + g_driver->enableMaterial2D(); + if (gamestate == MENU || gamestate == INGAME_MENU) { g_skin->renderSections(); @@ -267,6 +269,8 @@ void render(float elapsed_time) { RaceManager::getWorld()->getRaceGUI()->renderGlobal(elapsed_time); } + + g_driver->enableMaterial2D(false); } // render // -----------------------------------------------------------------------------