Minor fix for android progress bar that probably doesn't make any difference anyway

This commit is contained in:
Deve 2017-06-24 21:41:36 +02:00
parent 23277066a4
commit 68cfdfbf17

View File

@ -192,14 +192,17 @@ void ProgressBarAndroid::draw(float value)
value = value > 1.0f ? 1.0f : value;
m_close_event_received = !m_device->run();
m_device->getVideoDriver()->beginScene(true, true);
glClear(GL_COLOR_BUFFER_BIT);
glUniform1f(m_progress, value);
glDrawArrays(GL_TRIANGLES, 0, 6);
m_device->getVideoDriver()->endScene();
if (!m_close_event_received)
{
m_device->getVideoDriver()->beginScene(true, true);
glClear(GL_COLOR_BUFFER_BIT);
glUniform1f(m_progress, value);
glDrawArrays(GL_TRIANGLES, 0, 6);
m_device->getVideoDriver()->endScene();
}
}
#endif