mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #397 from 0xEAB/master
Fix version(without_opengl) code path
This commit is contained in:
commit
4c01e9286b
|
@ -1535,6 +1535,7 @@ void setOpenGLContextVersion() (ubyte hi, ubyte lo) { sdpyOpenGLContextVersion =
|
||||||
History:
|
History:
|
||||||
Added April 24, 2023 (dub v11.0)
|
Added April 24, 2023 (dub v11.0)
|
||||||
+/
|
+/
|
||||||
|
version(without_opengl) {} else
|
||||||
auto openGLCurrentContext() {
|
auto openGLCurrentContext() {
|
||||||
version(Windows)
|
version(Windows)
|
||||||
return wglGetCurrentContext();
|
return wglGetCurrentContext();
|
||||||
|
@ -14965,6 +14966,7 @@ mixin DynamicLoad!(XRandr, "Xrandr", 2, XRandrLibrarySuccessfullyLoaded) XRandrL
|
||||||
customEventFDWrite = -1;
|
customEventFDWrite = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version(without_opengl) {} else
|
||||||
if(glc !is null) {
|
if(glc !is null) {
|
||||||
glXDestroyContext(display, glc);
|
glXDestroyContext(display, glc);
|
||||||
glc = null;
|
glc = null;
|
||||||
|
|
Loading…
Reference in New Issue