diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-19 22:45:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-19 22:45:45 +0100 |
commit | ff522704109078a0cde844c74d608137b7c70f42 (patch) | |
tree | 155ec2e12a2f07bf24c26cb95dcdf0064fc48114 /slideshow | |
parent | 054d3251d770a6104c524fa7483011877ed657b1 (diff) |
loplugin:redundantcast
Change-Id: I89281db92f9b75e972313a95c33473d7649a9bef
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx index 2a13ca134b75..0298eba32b09 100644 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx +++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx @@ -212,7 +212,7 @@ static void display_primitives(const Primitives_t& primitives, double nTime, dou CHECK_GL_ERROR(); glBufferData(GL_ARRAY_BUFFER, size, nullptr, GL_STREAM_DRAW); CHECK_GL_ERROR(); - Vertex *buf = reinterpret_cast<Vertex*>(glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY)); + Vertex *buf = static_cast<Vertex*>(glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY)); std::vector<int> first_elements; int last_pos = 0; |