diff options
-rw-r--r-- | chart2/source/view/charttypes/3DBarChart.cxx | 1 | ||||
-rw-r--r-- | chart2/source/view/inc/3DBarChart.hxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/3DBarChart.cxx b/chart2/source/view/charttypes/3DBarChart.cxx index 2da54aa3ccf9..79c02a605184 100644 --- a/chart2/source/view/charttypes/3DBarChart.cxx +++ b/chart2/source/view/charttypes/3DBarChart.cxx @@ -57,6 +57,7 @@ void Bar3DChart::create3DShapes() void Bar3DChart::render() { + maContext.init(); for(boost::ptr_vector<opengl3D::Renderable3DObject>::iterator itr = maShapes.begin(), itrEnd = maShapes.end(); itr != itrEnd; ++itr) { diff --git a/chart2/source/view/inc/3DBarChart.hxx b/chart2/source/view/inc/3DBarChart.hxx index 6eeea5bb86b0..0cc5831b7016 100644 --- a/chart2/source/view/inc/3DBarChart.hxx +++ b/chart2/source/view/inc/3DBarChart.hxx @@ -11,6 +11,8 @@ #include <boost/ptr_container/ptr_vector.hpp> #include "VDataSeries.hxx" +#include <vcl/OpenGLContext.hxx> + namespace chart { namespace opengl3D { @@ -34,6 +36,7 @@ private: std::vector<VDataSeries*> maDataSeries; boost::ptr_vector<opengl3D::Renderable3DObject> maShapes; + OpenGLContext maContext; }; } |