X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tools%2Fviewer.cpp;h=2c950e18e2acc22714ee9d3030ed7467371a0fe0;hp=b05e6695c0a9d2438295ce2421d60e60bc75024d;hb=2b2676392aff2eb6b38c3e463cc67f4d67a4ef8b;hpb=669e9bfc18d2f5e28a9c715e1a69b7637a2d9c8b diff --git a/tools/viewer.cpp b/tools/viewer.cpp index b05e6695..2c950e18 100644 --- a/tools/viewer.cpp +++ b/tools/viewer.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -238,8 +237,8 @@ Viewer::Viewer(int argc, char **argv): sequence = new GL::Sequence(view); GL::Sequence::Step &step = sequence->add_step(0, *renderable); step.set_lighting(&lighting); - step.set_depth_test(&GL::DepthTest::lequal()); - step.set_blend(&GL::Blend::alpha()); + step.set_depth_test(GL::LEQUAL); + step.set_blend(GL::Blend(GL::SRC_ALPHA, GL::ONE_MINUS_SRC_ALPHA)); } view.set_content(sequence);