]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Separate abstract pixel compositions from concrete pixel formats
[libs/gl.git] / source / pipeline.cpp
index 26073549d9451f943a05b1c183a2b09c6fd30d3f..a7f4130bbab1fffd2605521426f562dbf42a92bf 100644 (file)
@@ -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)
        {