]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / demos / desertpillars / source / desertpillars.cpp
index 62a4455896300b22c9f77a3b8452ac6bf4eb26a6..bfb25f30c6b5c3564dee3746955ace47ddf8bf51 100644 (file)
@@ -15,14 +15,12 @@ DesertPillars::Options::Options()
 {
        wnd_opts.width = 1920;
        wnd_opts.height = 1080;
-       gl_opts.gl_version_major = Graphics::GLOptions::LATEST_VERSION;
-       gl_opts.core_profile = true;
 }
 
 
 DesertPillars::DesertPillars(int, char **):
        window(display, opts.wnd_opts),
-       gl_device(window, opts.gl_opts),
+       gl_device(window),
        keyboard(window),
        resources(&res_mgr),
        view(window),
@@ -51,7 +49,7 @@ DesertPillars::DesertPillars(int, char **):
        env_bld.set_debug_name("Environment sequence");
        env_seq.reset(env_bld.build());
 
-       env_map = make_unique<GL::EnvironmentMap>(256, GL::RGB16F, 7, sphere, *env_seq);
+       env_map = make_unique<GL::EnvironmentMap>(256, GL::RGBA16F, 7, sphere, *env_seq);
        env_map->set_debug_name("Environment map");
        sphere.set_matrix(GL::Matrix::translation(GL::Vector3(0.0f, 0.0f, 3.3f)));