From ac2b6de62bd38e6f9dd87f26f2a0394d7b6b41c7 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 13 Dec 2014 20:56:22 +0100 Subject: [PATCH] Minor addition to OpenGL code to prevent darker models --- lib/Slic3r/GUI/PreviewCanvas.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Slic3r/GUI/PreviewCanvas.pm b/lib/Slic3r/GUI/PreviewCanvas.pm index ee2cf302e..25b5de93c 100644 --- a/lib/Slic3r/GUI/PreviewCanvas.pm +++ b/lib/Slic3r/GUI/PreviewCanvas.pm @@ -594,6 +594,8 @@ sub Render { } } glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glFlush(); + glFinish(); glEnable(GL_LIGHTING); } # draw objects