X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tools%2Fviewer.cpp;h=a1853e922f19485097ee644e80900b76c9913b1f;hp=b6452a3cf454f9bfd8a69d189dceb05973aace5e;hb=HEAD;hpb=f0414f06fc2463e9765c9492dce60e0468dceb3c diff --git a/tools/viewer.cpp b/tools/viewer.cpp index b6452a3c..36a5dc9b 100644 --- a/tools/viewer.cpp +++ b/tools/viewer.cpp @@ -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(m[1].str); wnd_opts.height = lexical_cast(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), @@ -240,6 +237,7 @@ Viewer::Viewer(int argc, char **argv): { sequence = new GL::Sequence(); sequence->set_debug_name("Sequence"); + sequence->set_clear_enabled(true); GL::Sequence::Step &step = sequence->add_step(0, *renderable); step.set_lighting(&lighting); step.set_depth_test(GL::LEQUAL);