summaryrefslogtreecommitdiffstats
path: root/platform/windows/wgl_detect_version.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/windows/wgl_detect_version.cpp')
-rw-r--r--platform/windows/wgl_detect_version.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/wgl_detect_version.cpp b/platform/windows/wgl_detect_version.cpp
index 49da4b58c7..12dd6f6ee6 100644
--- a/platform/windows/wgl_detect_version.cpp
+++ b/platform/windows/wgl_detect_version.cpp
@@ -140,7 +140,7 @@ Dictionary detect_wgl() {
PFNWGLCREATECONTEXTATTRIBSARBPROC gd_wglCreateContextAttribsARB = nullptr;
gd_wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)gd_wglGetProcAddress("wglCreateContextAttribsARB");
if (gd_wglCreateContextAttribsARB) {
- HGLRC new_hRC = gd_wglCreateContextAttribsARB(hDC, 0, attribs);
+ HGLRC new_hRC = gd_wglCreateContextAttribsARB(hDC, nullptr, attribs);
if (new_hRC) {
if (gd_wglMakeCurrent(hDC, new_hRC)) {
PFNWGLGETSTRINGPROC gd_wglGetString = (PFNWGLGETSTRINGPROC)GetProcAddress(module, "glGetString");