X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fframebuffer.cpp;h=237f417a9b45db982ffe54e8a59e0bf9a8895e8f;hp=c3639b8bb378848f4c9dda1e27f7654109c75af6;hb=e19309340e90ee881e9cb2f8b7c33a5b89681aa6;hpb=e226ee890690e08cfa6f89a9a64e8a338db63822 diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index c3639b8b..237f417a 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include "error.h" #include "framebuffer.h" #include "misc.h" @@ -159,10 +159,10 @@ void Framebuffer::update_attachment(unsigned mask) const { if(ARB_draw_buffers) glDrawBuffers(color_bufs.size(), &color_bufs[0]); - else if(MSP_draw_buffer) + else if(MSP_buffer_control) glDrawBuffer(first_buffer); - if(MSP_draw_buffer) + if(MSP_buffer_control) glReadBuffer(first_buffer); } }