Omit openGLCurrentContext in version(without_opengl)

This commit is contained in:
Elias Batek 2023-09-16 23:59:49 +02:00
parent f417e16d07
commit e0957688db
1 changed files with 2 additions and 3 deletions

View File

@ -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();