From 52e19c59b350bad2ebdb60ed91eaf4afc05234dd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 13 May 2016 20:33:54 +0200 Subject: [PATCH] Revert "- let gl_draw_sync default to false." This reverts commit 616f84209b3102a864be98959cb4ac9a5518a0b9. Now I remember why this is not active: This is causing some problems with interpolated plane heights. Since there is no synchronization with the vertex buffer, the next frame will reset all plane coordinates before the GPU can use them. This will require some rethinking about when to update the buffer - it cannot be done in the render data setup loop. --- src/gl/system/gl_framebuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/system/gl_framebuffer.cpp b/src/gl/system/gl_framebuffer.cpp index 108f4f727..818084706 100644 --- a/src/gl/system/gl_framebuffer.cpp +++ b/src/gl/system/gl_framebuffer.cpp @@ -164,7 +164,8 @@ void OpenGLFrameBuffer::InitializeState() // //========================================================================== -CVAR(Bool, gl_draw_sync, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) +// Testing only for now. +CVAR(Bool, gl_draw_sync, true, 0) //false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) void OpenGLFrameBuffer::Update() {