mirror of https://github.com/adamdruppe/arsd.git
Fix version(without_opengl) code path
This commit is contained in:
parent
b1550ee5b0
commit
f417e16d07
|
@ -1536,7 +1536,9 @@ void setOpenGLContextVersion() (ubyte hi, ubyte lo) { sdpyOpenGLContextVersion =
|
||||||
Added April 24, 2023 (dub v11.0)
|
Added April 24, 2023 (dub v11.0)
|
||||||
+/
|
+/
|
||||||
auto openGLCurrentContext() {
|
auto openGLCurrentContext() {
|
||||||
version(Windows)
|
version(without_opengl)
|
||||||
|
return null;
|
||||||
|
else version(Windows)
|
||||||
return wglGetCurrentContext();
|
return wglGetCurrentContext();
|
||||||
else
|
else
|
||||||
return glXGetCurrentContext();
|
return glXGetCurrentContext();
|
||||||
|
@ -14965,6 +14967,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