if(h==hdr)
return;
- bool old_hdr= hdr;
+ bool old_hdr = hdr;
hdr = h;
try
{
{
Framebuffer &fbo = (samples ? target_ms : target[0])->get_framebuffer();
fbo.bind();
- fbo.clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT);
+ fbo.clear();
}
for(PassList::const_iterator i=passes.begin(); i!=passes.end(); ++i)
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)
{