improve performance on linux by removing glFinish()
This commit is contained in:
parent
9cf40d7f53
commit
70f14b5ac3
|
@ -213,6 +213,7 @@ void Graphics::beginRender()
|
||||||
|
|
||||||
void Graphics::endRender()
|
void Graphics::endRender()
|
||||||
{
|
{
|
||||||
|
glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Graphics::setViewportSize(const Size& size)
|
void Graphics::setViewportSize(const Size& size)
|
||||||
|
|
|
@ -802,7 +802,6 @@ void X11Window::swapBuffers()
|
||||||
#ifdef OPENGL_ES
|
#ifdef OPENGL_ES
|
||||||
eglSwapBuffers(m_eglDisplay, m_eglSurface);
|
eglSwapBuffers(m_eglDisplay, m_eglSurface);
|
||||||
#else
|
#else
|
||||||
glFinish();
|
|
||||||
glXSwapBuffers(m_display, m_window);
|
glXSwapBuffers(m_display, m_window);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue