improve performance on linux by removing glFinish()

This commit is contained in:
Eduardo Bart 2012-04-24 13:23:33 -03:00
parent 9cf40d7f53
commit 70f14b5ac3
2 changed files with 1 additions and 1 deletions

View File

@ -213,6 +213,7 @@ void Graphics::beginRender()
void Graphics::endRender()
{
glFlush();
}
void Graphics::setViewportSize(const Size& size)

View File

@ -802,7 +802,6 @@ void X11Window::swapBuffers()
#ifdef OPENGL_ES
eglSwapBuffers(m_eglDisplay, m_eglSurface);
#else
glFinish();
glXSwapBuffers(m_display, m_window);
#endif
}