X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.cpp;h=ea28d5db2d261eeb999d1e6c05eea38b6aefe70a;hb=90a26a1740d5843b60d07d9c39d8567bfed5189c;hp=a0fcbc474203c5588d04e410bf4d0975c49fa983;hpb=656b4577fccfb02bea747871e5ab10148f002443;p=libs%2Fgl.git diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index a0fcbc47..ea28d5db 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -53,7 +53,6 @@ void Framebuffer::update_attachment(unsigned mask) const if(current()==this) { GLenum color_buf = GL_NONE; - bool has_depth = false; for(unsigned i=0; i=COLOR_ATTACHMENT0 && attch.attachment<=COLOR_ATTACHMENT3) color_buf = attch.attachment; - if(attch.attachment==DEPTH_ATTACHMENT) - has_depth = true; } glDrawBuffer(color_buf); - glDepthMask(has_depth); } else dirty |= mask;