]> git.tdb.fi Git - libs/gl.git/commitdiff
Initialize View::camera to null
authorMikko Rasa <tdb@tdb.fi>
Tue, 6 Dec 2016 21:33:58 +0000 (23:33 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 7 Dec 2016 00:28:33 +0000 (02:28 +0200)
So it doesn't crash when used without a camera.

source/view.cpp

index cd759e4859c30ee754836411ce37cdb259fb29e1..115a4b0cd77eefc93c5a6db580e943eeaf6a81c9 100644 (file)
@@ -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));