]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/sequencebuilder.cpp
Always use RGBA color format when building Sequences
[libs/gl.git] / source / builders / sequencebuilder.cpp
index 65aeaa13d01a02d1dfa12198dfb4ec8fc4f39be6..c80e2f09a07ad4c69164fdf63686017f692f2211 100644 (file)
@@ -171,9 +171,8 @@ FrameFormat SequenceBuilder::create_frame_format() const
        if(samples<tmpl.get_required_multisample())
                throw invalid_operation("SequenceBuilder::create_frame_format");
 
-       PixelComponents color_comp = (tmpl.get_alpha() ? RGBA : RGB);
        DataType color_type = (tmpl.get_hdr() ? HALF_FLOAT : UNSIGNED_BYTE);
-       PixelFormat color_pf = make_pixelformat(color_comp, color_type);
+       PixelFormat color_pf = make_pixelformat(RGBA, color_type);
 
        return (COLOR_ATTACHMENT,color_pf, DEPTH_ATTACHMENT).set_samples(samples);
 }