X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogramdata.cpp;h=01927063377b693b72c9ede4cabdb050ecd91067;hb=3b159edbe4e80a2bc19c4c2fcd42cb996b9fbfe0;hp=615da767fedefca62eebd06b68fce816aa166ad2;hpb=9885c5465db78b6a1d9cc8bf7ffa7a79fb116afc;p=libs%2Fgl.git 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(); }