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

Emmanuel Gil Peyrot emmanuel.peyrot at collabora.com
Thu Feb 25 11:11:47 UTC 2016


 slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx |   18 ++--------
 1 file changed, 4 insertions(+), 14 deletions(-)

New commits:
commit 9adeebadd5d1728e9abaec67aa4dd8a0c300c98f
Author: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>
Date:   Wed Feb 24 20:21:09 2016 +0000

    slideshow: Move Vortex’ tileInfo attribute upload to the first frame
    
    Change-Id: Ifbc154755d43a085b78740a5a3c97ed2cbe9a905
    Reviewed-on: https://gerrit.libreoffice.org/22467
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
index 86e1131..672903b 100644
--- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
@@ -1557,7 +1557,6 @@ public:
     }
 
 private:
-    virtual void prepare( double nTime, double SlideWidth, double SlideHeight, double DispWidth, double DispHeight ) override;
     virtual void finishTransition() override;
     virtual GLuint makeShader() const override;
     virtual void prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int32 glEnteringSlideTex ) override;
@@ -1575,19 +1574,6 @@ private:
     std::vector<GLfloat> mvTileInfo;
 };
 
-void VortexTransition::prepare( double, double, double, double, double )
-{
-    glBindBuffer(GL_ARRAY_BUFFER, mnTileInfoBuffer);
-    CHECK_GL_ERROR();
-    glEnableVertexAttribArray(mnTileInfoLocation);
-    CHECK_GL_ERROR();
-    glVertexAttribPointer(mnTileInfoLocation, 1, GL_FLOAT, GL_FALSE, 0, nullptr);
-    CHECK_GL_ERROR();
-
-    glBindBuffer(GL_ARRAY_BUFFER, 0);
-    CHECK_GL_ERROR();
-}
-
 void VortexTransition::finishTransition()
 {
     PermTextureTransition::finishTransition();
@@ -1669,6 +1655,10 @@ void VortexTransition::prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int32
 
     glBindBuffer(GL_ARRAY_BUFFER, mnTileInfoBuffer);
     CHECK_GL_ERROR();
+    glEnableVertexAttribArray(mnTileInfoLocation);
+    CHECK_GL_ERROR();
+    glVertexAttribPointer(mnTileInfoLocation, 1, GL_FLOAT, GL_FALSE, 0, nullptr);
+    CHECK_GL_ERROR();
     glBufferData(GL_ARRAY_BUFFER, mvTileInfo.size()*sizeof(GLfloat), mvTileInfo.data(), GL_STATIC_DRAW);
     CHECK_GL_ERROR();
 


More information about the Libreoffice-commits mailing list