diff --git a/components/myguiplatform/myguirendermanager.cpp b/components/myguiplatform/myguirendermanager.cpp index e2f2f9820..bf1d66fe8 100644 --- a/components/myguiplatform/myguirendermanager.cpp +++ b/components/myguiplatform/myguirendermanager.cpp @@ -195,7 +195,9 @@ public: META_Object(osgMyGUI, Drawable) private: + // double buffering approach, to avoid the need for synchronization with the draw thread std::vector mBatchVector[2]; + int mWriteTo; mutable int mReadFrom; };