]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/cgl/glcontext.cpp
Remove glViewport calls from GLContext
[libs/gui.git] / source / graphics / cgl / glcontext.cpp
index 7e06d2333aea4c631b0e956e0fbe6047d5380737..748b9b1416eb338a6d21a30b40c0fbdaa7682437 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);
@@ -75,7 +75,6 @@ void GLContext::swap_buffers()
 void GLContext::window_resized(unsigned w, unsigned h)
 {
        // XXX Call [context update] here?
-       glViewport(0, 0, w, h);
 }
 
 } // namespace Graphics