summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-30 14:22:53 +0000
committerDavid Tardon <dtardon@redhat.com>2016-12-01 07:50:41 +0000
commit75627b4dc1a821142419ed50d247c2d0e621c78b (patch)
tree7692aad6fc07712fe3dc2baa150fde921bffc178 /slideshow
parente4a8b60564cdc332b07f3e18a67416b3c5c48703 (diff)
glDrawArrays takes num of indices, not size of storage
this stops the strange missing corner seen during the diamond transition Change-Id: If806a0a3303eb38644bb6d3a479cadbd5fe9ca25 (cherry picked from commit 579feb4d841ea80de699f4124378d0701034833e) Reviewed-on: https://gerrit.libreoffice.org/31426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/opengl/TransitionImpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/opengl/TransitionImpl.cxx b/slideshow/source/engine/opengl/TransitionImpl.cxx
index 33e7f4ba0f43..a2b11c34c949 100644
--- a/slideshow/source/engine/opengl/TransitionImpl.cxx
+++ b/slideshow/source/engine/opengl/TransitionImpl.cxx
@@ -366,7 +366,7 @@ void Primitive::display(GLint primitiveTransformLocation, double nTime, double W
CHECK_GL_ERROR();
glVertexPointer( 3, GL_FLOAT, sizeof(Vertex), &Vertices[0] );
CHECK_GL_ERROR();
- glDrawArrays( GL_TRIANGLES, 0, getVerticesSize() );
+ glDrawArrays( GL_TRIANGLES, 0, Vertices.size() );
CHECK_GL_ERROR();
glPopClientAttrib();