opengl bug fix

This commit is contained in:
Adam D. Ruppe 2016-06-10 21:42:34 -04:00
parent 4d9563e3b7
commit 492afd904a
1 changed files with 3 additions and 3 deletions

View File

@ -3918,7 +3918,7 @@ version(Windows) {
DeleteObject(oldBuffer); DeleteObject(oldBuffer);
} }
version(with_opengl) version(without_opengl) {} else
if(openglMode == OpenGlOptions.yes && resizability == Resizablity.automaticallyScaleIfPossible) { if(openglMode == OpenGlOptions.yes && resizability == Resizablity.automaticallyScaleIfPossible) {
glViewport(0, 0, width, height); glViewport(0, 0, width, height);
} }
@ -3967,7 +3967,7 @@ version(Windows) {
EndPaint(hwnd, &ps); EndPaint(hwnd, &ps);
} else { } else {
EndPaint(hwnd, &ps); EndPaint(hwnd, &ps);
version(with_opengl) version(without_opengl) {} else
redrawOpenGlSceneNow(); redrawOpenGlSceneNow();
} }
} break; } break;
@ -5252,7 +5252,7 @@ version(X11) {
win.buffer = newPixmap; win.buffer = newPixmap;
} }
version(with_opengl) version(without_opengl) {} else
if(win.openglMode == OpenGlOptions.yes && win.resizability == Resizablity.automaticallyScaleIfPossible) { if(win.openglMode == OpenGlOptions.yes && win.resizability == Resizablity.automaticallyScaleIfPossible) {
glViewport(0, 0, event.width, event.height); glViewport(0, 0, event.width, event.height);
} }