]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/cgl/glcontext.cpp
Remove names from unused parameters
[libs/gui.git] / source / graphics / cgl / glcontext.cpp
index 7e06d2333aea4c631b0e956e0fbe6047d5380737..4d51052175902d85db9805ee34a2c0c81aaae135 100644 (file)
@@ -20,25 +20,25 @@ struct GLContext::Private
 void GLContext::platform_init(const GLOptions &opts)
 {
        vector<unsigned> attribs;
-       
+
        attribs.push_back(CPF_DEPTH_SIZE);
        attribs.push_back(1);
-       
+
        if(opts.alpha)
        {
                attribs.push_back(CPF_ALPHA_SIZE);
                attribs.push_back(1);
        }
-       
+
        if(opts.stencil)
        {
                attribs.push_back(CPF_STENCIL_SIZE);
                attribs.push_back(1);
        }
-       
+
        if(opts.doublebuffer)
                attribs.push_back(CPF_DOUBLEBUFFER);
-       
+
        if(opts.multisample>0)
        {
                attribs.push_back(CPF_SAMPLE_BUFFERS);
@@ -72,10 +72,9 @@ void GLContext::swap_buffers()
        flush_gl_buffer(priv->context);
 }
 
-void GLContext::window_resized(unsigned w, unsigned h)
+void GLContext::window_resized(unsigned, unsigned)
 {
        // XXX Call [context update] here?
-       glViewport(0, 0, w, h);
 }
 
 } // namespace Graphics