mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
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()
|
||||
{
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void Graphics::setViewportSize(const Size& size)
|
||||
|
@ -802,7 +802,6 @@ void X11Window::swapBuffers()
|
||||
#ifdef OPENGL_ES
|
||||
eglSwapBuffers(m_eglDisplay, m_eglSurface);
|
||||
#else
|
||||
glFinish();
|
||||
glXSwapBuffers(m_display, m_window);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user