From 492afd904a3484f125957f86229653c202612000 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 10 Jun 2016 21:42:34 -0400 Subject: [PATCH] opengl bug fix --- simpledisplay.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index b12b4cd..605df5c 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -3918,7 +3918,7 @@ version(Windows) { DeleteObject(oldBuffer); } - version(with_opengl) + version(without_opengl) {} else if(openglMode == OpenGlOptions.yes && resizability == Resizablity.automaticallyScaleIfPossible) { glViewport(0, 0, width, height); } @@ -3967,7 +3967,7 @@ version(Windows) { EndPaint(hwnd, &ps); } else { EndPaint(hwnd, &ps); - version(with_opengl) + version(without_opengl) {} else redrawOpenGlSceneNow(); } } break; @@ -5252,7 +5252,7 @@ version(X11) { win.buffer = newPixmap; } - version(with_opengl) + version(without_opengl) {} else if(win.openglMode == OpenGlOptions.yes && win.resizability == Resizablity.automaticallyScaleIfPossible) { glViewport(0, 0, event.width, event.height); }