X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcamera.cpp;h=fca3ea33d504773d90e073c598175a33d9be2f46;hb=c225025178a397a6ec7c21b686e3758f5f5d3cb6;hp=0202bedf68ff9e2bdd166f9fc57102da6450e8e5;hpb=fa5b232a16e11d7950e80764497f0167ec9e3b41;p=libs%2Fgl.git diff --git a/source/camera.cpp b/source/camera.cpp index 0202bedf..fca3ea33 100644 --- a/source/camera.cpp +++ b/source/camera.cpp @@ -15,7 +15,10 @@ Camera::Camera(): position(0, 0, 0), look_dir(0, 0, -1), up_dir(0, 1, 0) -{ } +{ + update_projection_matrix(); + update_object_matrix(); +} void Camera::set_field_of_view(const Geometry::Angle &f) {