X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.cpp;h=a7f4130bbab1fffd2605521426f562dbf42a92bf;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hp=02ccc22ebe80b6ef8fb756facb1516f9c4f0d1d7;hpb=8697b05bf71c49882fe15d53aa4f502aa2b5f9a3;p=libs%2Fgl.git diff --git a/source/pipeline.cpp b/source/pipeline.cpp index 02ccc22e..a7f4130b 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -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) {