X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.cpp;h=237f417a9b45db982ffe54e8a59e0bf9a8895e8f;hb=03de23d42e418f5d7d86c1fbe8665aef1f0a36bd;hp=c3639b8bb378848f4c9dda1e27f7654109c75af6;hpb=7684f8cc99f80db093e7ba0a199ff37c4c315bdb;p=libs%2Fgl.git 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); } }