From: Mikko Rasa Date: Sun, 9 Feb 2020 22:07:09 +0000 (+0200) Subject: Access static functions through class and not instance X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f4d8ff7cab183c6e2ec3bf29c7449f25ea370646;p=libs%2Fgl.git Access static functions through class and not instance --- diff --git a/source/environmentmap.cpp b/source/environmentmap.cpp index efd13709..68e5051e 100644 --- a/source/environmentmap.cpp +++ b/source/environmentmap.cpp @@ -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); }