mirror of https://github.com/adamdruppe/arsd.git
opengl bug fix
This commit is contained in:
parent
4d9563e3b7
commit
492afd904a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue