From 70f14b5ac3e95e3b9c3463034efd93cafcbb40a5 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 24 Apr 2012 13:23:33 -0300 Subject: [PATCH] improve performance on linux by removing glFinish() --- src/framework/graphics/graphics.cpp | 1 + src/framework/platform/x11window.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/graphics/graphics.cpp b/src/framework/graphics/graphics.cpp index cceadb12..f58e029f 100644 --- a/src/framework/graphics/graphics.cpp +++ b/src/framework/graphics/graphics.cpp @@ -213,6 +213,7 @@ void Graphics::beginRender() void Graphics::endRender() { + glFlush(); } void Graphics::setViewportSize(const Size& size) diff --git a/src/framework/platform/x11window.cpp b/src/framework/platform/x11window.cpp index 7e972a06..4fc6a153 100644 --- a/src/framework/platform/x11window.cpp +++ b/src/framework/platform/x11window.cpp @@ -802,7 +802,6 @@ void X11Window::swapBuffers() #ifdef OPENGL_ES eglSwapBuffers(m_eglDisplay, m_eglSurface); #else - glFinish(); glXSwapBuffers(m_display, m_window); #endif }