[Libreoffice-commits] core.git: slideshow/source

Caolán McNamara caolanm at redhat.com
Wed Nov 30 14:24:42 UTC 2016


 slideshow/source/engine/opengl/TransitionImpl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 579feb4d841ea80de699f4124378d0701034833e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 30 14:22:53 2016 +0000

    glDrawArrays takes num of indices, not size of storage
    
    this stops the strange missing corner seen during the diamond
    transition
    
    Change-Id: If806a0a3303eb38644bb6d3a479cadbd5fe9ca25

diff --git a/slideshow/source/engine/opengl/TransitionImpl.cxx b/slideshow/source/engine/opengl/TransitionImpl.cxx
index 33e7f4b..a2b11c3 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();
 


More information about the Libreoffice-commits mailing list