summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-30 14:22:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-30 14:24:04 +0000
commit579feb4d841ea80de699f4124378d0701034833e (patch)
tree6c6583bed778522f4bfa966dbd9cac6cd632c504 /slideshow
parentba3e52699bc05911bc1f9e3cbd5d1332902c736a (diff)
glDrawArrays takes num of indices, not size of storage
this stops the strange missing corner seen during the diamond transition Change-Id: If806a0a3303eb38644bb6d3a479cadbd5fe9ca25
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();