[Libreoffice-commits] core.git: Branch 'feature/fixes17' - slideshow/source

Emmanuel Gil Peyrot emmanuel.peyrot at collabora.com
Thu Feb 25 14:48:55 UTC 2016


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

New commits:
commit b947e40acf6432174f7d207e23832b8020c1af7e
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

diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
index fc66cb6..43dfc46 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