From: Mikko Rasa Date: Sun, 27 Nov 2022 14:20:59 +0000 (+0200) Subject: Add a missing scope qualifier to Windows GLContext X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=bc1a38d6d2c966a6aee74e483ca7a7d37a56909e;p=libs%2Fgui.git Add a missing scope qualifier to Windows GLContext --- 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);