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);
}
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);
}