]> git.tdb.fi Git - libs/gui.git/commitdiff
Add a missing scope qualifier to Windows GLContext
authorMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:20:59 +0000 (16:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:27:05 +0000 (16:27 +0200)
source/graphics/wgl/glcontext.cpp

index 3627a17ff286ca6494c2e81cdf7e6f2051208d25..5a13dc4f79e6068089521ed887cb441723203931 100644 (file)
@@ -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);