X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramdata.cpp;h=01927063377b693b72c9ede4cabdb050ecd91067;hp=615da767fedefca62eebd06b68fce816aa166ad2;hb=08e19bc2b4eba572bc7699378cf55cd8772ac67e;hpb=b2c8b2238877f76cdea184cca70336b15ddb78d9 diff --git a/source/programdata.cpp b/source/programdata.cpp index 615da767..01927063 100644 --- a/source/programdata.cpp +++ b/source/programdata.cpp @@ -1,3 +1,4 @@ +#include #include "buffer.h" #include "color.h" #include "error.h" @@ -375,7 +376,7 @@ void ProgramData::apply() const /* If any blocks stored in the buffer were updated, bind the buffer here to avoid state thrashing. */ - if(buffered_blocks_updated) + if(buffered_blocks_updated && !ARB_direct_state_access) buffer->bind(); }