]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/viewer.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / tools / viewer.cpp
index 830caa77b81527799f66a2d70737316bd231787d..36a5dc9bc13e3a2af70daf93d32e2234e781b04d 100644 (file)
@@ -44,7 +44,6 @@ private:
                string animation_name;
                string renderable_name;
                Graphics::WindowOptions wnd_opts;
-               Graphics::GLOptions gl_opts;
 
                Options(int, char **);
        };
@@ -127,14 +126,12 @@ Viewer::Options::Options(int argc, char **argv)
                wnd_opts.width = lexical_cast<unsigned>(m[1].str);
                wnd_opts.height = lexical_cast<unsigned>(m[2].str);
        }
-       gl_opts.gl_version_major = Graphics::GLOptions::LATEST_VERSION;
-       gl_opts.core_profile = true;
 }
 
 Viewer::Viewer(int argc, char **argv):
        opts(argc, argv),
        window(display, opts.wnd_opts),
-       gl_device(window, opts.gl_opts),
+       gl_device(window),
        mouse(window),
        view(window),
        sequence(0),