]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / pipeline.cpp
index 02ccc22ebe80b6ef8fb756facb1516f9c4f0d1d7..a7f4130bbab1fffd2605521426f562dbf42a92bf 100644 (file)
@@ -57,7 +57,7 @@ void Pipeline::set_hdr(bool h)
        if(h==hdr)
                return;
 
-       bool old_hdr= hdr;
+       bool old_hdr = hdr;
        hdr = h;
        try
        {
@@ -234,7 +234,7 @@ void Pipeline::create_targets(unsigned recreate)
                target_ms = 0;
        }
 
-       PixelFormat color_pf = (hdr ? (alpha ? RGBA16F : RGB16F) : (alpha ? RGBA : RGB));
+       PixelFormat color_pf = (hdr ? (alpha ? RGBA16F : RGB16F) : (alpha ? RGBA8 : RGB8));
        RenderTargetFormat fmt = (RENDER_COLOR,color_pf, RENDER_DEPTH);
        if(!postproc.empty() || samples)
        {