diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 00:30:23 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 04:38:22 +0200 |
commit | 375659b8641126cf1deae1c1789880771aa61308 (patch) | |
tree | 53de1cbe49030965915e613ed9c168356558129b /chart2 | |
parent | 4d5d61e45435551088d6604f028cb9941974eafe (diff) |
e temporarily a local OpenGL context
Change-Id: I086d826456d77bf978c3877ed6da92850878ad97
Diffstat (limited to 'chart2')
-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; }; } |