X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.cpp;h=237f417a9b45db982ffe54e8a59e0bf9a8895e8f;hb=03de23d42e418f5d7d86c1fbe8665aef1f0a36bd;hp=c7bfcd5a5808120088bb72cc2c9a589742186b66;hpb=751c171a97a67f3c2077e120492746babde1d43c;p=libs%2Fgl.git diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index c7bfcd5a..237f417a 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -3,7 +3,8 @@ #include #include #include -#include +#include +#include #include "error.h" #include "framebuffer.h" #include "misc.h" @@ -158,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); } }