]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/cubemap.cpp
Fix color equations in the standard shaders
[libs/gl.git] / demos / cubemap.cpp
index 4f663055b8fc4ff68dce2c11b5c00bff484154cf..98d0ba245f0ab8bab0c6d4a7cd35a7f603bc8280 100644 (file)
@@ -90,7 +90,7 @@ int main()
        features.material = true;
        features.reflection = true;
        GL::Program shprog(features);
-       GL::ProgramData shdata(shprog);
+       GL::ProgramData shdata;
        shdata.uniform("environment", 0);
        shdata.uniform("reflectivity", 0.5f);
 
@@ -112,7 +112,7 @@ int main()
                        GL::Bind bind_depth(GL::DepthTest::lequal());
                        GL::Renderer renderer(0);
                        renderer.set_material(&material);
-                       renderer.set_shader(&shprog, &shdata);
+                       renderer.set_shader_program(&shprog, &shdata);
                        renderer.set_texture(&texture);
                        renderer.matrix_stack() *= GL::Matrix::translation(0, 0, -7);
                        {