X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=1f787d29a46f090b6a320a2dc07a07ab872eee87;hb=61c8b6e824977ce025c979005b141ff4bb02b0e9;hp=f2614c416e1413c065bcfe972402eb9cf2f554ef;hpb=c897f76c44c2baaa90c0f85e0bcbee152a99272a;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index f2614c41..1f787d29 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -216,8 +216,7 @@ const void *Batch::setup_draw() const if(get_buffer()) { - if(dirty) - update_buffer(); + refresh(); return reinterpret_cast(get_offset()); }