]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/wgl/glcontext.cpp
Remove names from unused parameters
[libs/gui.git] / source / graphics / wgl / glcontext.cpp
index 1a0ad7adc011f48b9b12db3ced3c33d908395396..844f7a712c990a1442a7f442c4d50e5034e5b602 100644 (file)
@@ -14,10 +14,8 @@ struct GLContext::Private
 };
 
 
-void GLContext::platform_init()
+void GLContext::platform_init(const GLOptions &opts)
 {
-       priv = new Private;
-
        HDC dc = GetDC(window.get_private().window);
 
        PIXELFORMATDESCRIPTOR pfd;
@@ -40,6 +38,7 @@ void GLContext::platform_init()
                throw unsupported_gl_mode(opts);
        SetPixelFormat(dc, pf_index, &pfd);
 
+       priv = new Private;
        priv->context = wglCreateContext(dc);
        wglMakeCurrent(dc, priv->context);
 
@@ -61,10 +60,8 @@ void GLContext::swap_buffers()
        ReleaseDC(window.get_private().window, dc);
 }
 
-void GLContext::window_resized(unsigned w, unsigned h)
-{
-       glViewport(0, 0, w, h);
-}
+void GLContext::window_resized(unsigned, unsigned)
+{ }
 
 } // namespace Graphics
 } // namespace Msp