]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/sequence.cpp
Fix a logic error in Sequence
[libs/gl.git] / source / render / sequence.cpp
index e27ebf1888248695240a71a71179f4182e6d36db..9a50b8f6f405648ff7b857af03f394b4a85d2eb7 100644 (file)
@@ -1,6 +1,5 @@
 #include <msp/core/maputils.h>
 #include "blend.h"
-#include "camera.h"
 #include "framebuffer.h"
 #include "lighting.h"
 #include "postprocessor.h"
@@ -32,7 +31,6 @@ Sequence::Sequence(const Framebuffer &fbo)
 
 void Sequence::init(unsigned w, unsigned h)
 {
-       camera = 0;
        width = w;
        height = h;
        hdr = false;
@@ -132,7 +130,7 @@ void Sequence::add_postprocessor(PostProcessor *pp, bool owned)
        }
        catch(...)
        {
-               if(!owned)
+               if(owned)
                        delete pp;
                postproc.pop_back();
                throw;