]> git.tdb.fi Git - libs/gl.git/commitdiff
Access static functions through class and not instance
authorMikko Rasa <tdb@tdb.fi>
Sun, 9 Feb 2020 22:07:09 +0000 (00:07 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 Feb 2020 22:07:09 +0000 (00:07 +0200)
source/environmentmap.cpp

index efd1370929cf0d03720357c1d15fa401222de14f..68e5051e5f874126e4864e20a61bc6e5e8308550 100644 (file)
@@ -82,8 +82,8 @@ void EnvironmentMap::setup_frame(Renderer &renderer)
                TextureCubeFace face = TextureCube::enumerate_faces(i);
                fbo[i].bind();
                fbo[i].clear();
-               camera.set_look_direction(env_tex.get_face_direction(face));
-               camera.set_up_direction(env_tex.get_t_direction(face));
+               camera.set_look_direction(TextureCube::get_face_direction(face));
+               camera.set_up_direction(TextureCube::get_t_direction(face));
                renderer.set_camera(camera);
                renderer.render(environment);
        }