From f4d8ff7cab183c6e2ec3bf29c7449f25ea370646 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 10 Feb 2020 00:07:09 +0200 Subject: [PATCH] Access static functions through class and not instance --- source/environmentmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.45.2