From: Mikko Rasa Date: Tue, 6 Dec 2016 21:33:58 +0000 (+0200) Subject: Initialize View::camera to null X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=540f976c5f0fcee4fbf0edfdace246f4a3588f65;p=libs%2Fgl.git Initialize View::camera to null So it doesn't crash when used without a camera. --- diff --git a/source/view.cpp b/source/view.cpp index cd759e48..115a4b0c 100644 --- a/source/view.cpp +++ b/source/view.cpp @@ -13,6 +13,7 @@ View::View(Graphics::Window &w, Graphics::GLContext &c): window(w), context(c), target(Framebuffer::system()), + camera(0), content(0) { window.signal_resize.connect(sigc::mem_fun(this, &View::window_resized));