From bc1a38d6d2c966a6aee74e483ca7a7d37a56909e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 27 Nov 2022 16:20:59 +0200 Subject: [PATCH] Add a missing scope qualifier to Windows GLContext --- source/graphics/wgl/glcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/graphics/wgl/glcontext.cpp b/source/graphics/wgl/glcontext.cpp index 3627a17..5a13dc4 100644 --- a/source/graphics/wgl/glcontext.cpp +++ b/source/graphics/wgl/glcontext.cpp @@ -55,7 +55,7 @@ void GLContext::platform_init(const GLOptions &opts) SetPixelFormat(dc, pf_index, &pfd); priv = new Private; - if(opts.forward_compatible || opts.gl_version_major!=DEFAULT_VERSION) + if(opts.forward_compatible || opts.gl_version_major!=GLOptions::DEFAULT_VERSION) { ContextHandle fake_context = wglCreateContext(dc); wglMakeCurrent(dc, fake_context); -- 2.45.2