Fixed having motion blur on the GUI, fixed character selection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9355 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
46dab63f2d
commit
85096f80bf
@ -1210,9 +1210,6 @@ void IrrDriver::update(float dt)
|
||||
true, video::SColor(255,100,101,140));
|
||||
}
|
||||
|
||||
// Start the RTT for post-processing
|
||||
m_post_processing.beginCapture();
|
||||
|
||||
{
|
||||
PROFILER_PUSH_CPU_MARKER("Update GUI widgets", 0x7F, 0x7F, 0x00);
|
||||
|
||||
@ -1233,6 +1230,9 @@ void IrrDriver::update(float dt)
|
||||
|
||||
if (inRace)
|
||||
{
|
||||
// Start the RTT for post-processing
|
||||
m_post_processing.beginCapture();
|
||||
|
||||
irr_driver->getVideoDriver()->enableMaterial2D();
|
||||
|
||||
RaceGUIBase *rg = world->getRaceGUI();
|
||||
@ -1264,6 +1264,12 @@ void IrrDriver::update(float dt)
|
||||
} // if kart->Camera
|
||||
} // for i<world->getNumKarts()
|
||||
|
||||
// Stop capturing for the post-processing
|
||||
m_post_processing.endCapture();
|
||||
|
||||
// Render the post-processed scene
|
||||
m_post_processing.render();
|
||||
|
||||
// To draw the race gui we set the viewport back to the full
|
||||
// screen.
|
||||
m_video_driver->setViewPort(core::recti(0, 0,
|
||||
@ -1293,7 +1299,6 @@ void IrrDriver::update(float dt)
|
||||
m_scene_manager->drawAll();
|
||||
}
|
||||
|
||||
|
||||
// The render and displayFPS calls interfere with bullet debug
|
||||
// rendering, so they can not be called.
|
||||
//FIXME if(!inRace || !UserConfigParams::m_bullet_debug)
|
||||
@ -1353,12 +1358,6 @@ void IrrDriver::update(float dt)
|
||||
}
|
||||
#endif
|
||||
|
||||
// Stop capturing for the post-processing
|
||||
m_post_processing.endCapture();
|
||||
|
||||
// Render the post-processed scene
|
||||
m_post_processing.render();
|
||||
|
||||
m_video_driver->endScene();
|
||||
|
||||
// Enable this next print statement to get render information printed
|
||||
|
Loading…
Reference in New Issue
Block a user