mirror of https://github.com/adamdruppe/arsd.git
Omit openGLCurrentContext in version(without_opengl)
This commit is contained in:
parent
f417e16d07
commit
e0957688db
|
@ -1535,10 +1535,9 @@ 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(without_opengl)
|
version(Windows)
|
||||||
return null;
|
|
||||||
else version(Windows)
|
|
||||||
return wglGetCurrentContext();
|
return wglGetCurrentContext();
|
||||||
else
|
else
|
||||||
return glXGetCurrentContext();
|
return glXGetCurrentContext();
|
||||||
|
|
Loading…
Reference in New Issue