From d5c5732ada2f9f616e26ef514676adee2245c5e5 Mon Sep 17 00:00:00 2001 From: Javiya Vivekkumar Dineshbhai Date: Wed, 29 May 2024 18:29:18 +0530 Subject: Remove unused 'numTiles' from glitter vertex shader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'numTiles' variable is not being used in the vertex shader. To test this PR, apply the Glitter transition. If it works as expected, then the change is successful. Signed-off-by: Javiya Vivekkumar Dineshbhai Change-Id: Ia1f833e6009b1f8c774329945ba260d20b8c9f64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168222 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- slideshow/source/engine/opengl/TransitionImpl.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'slideshow/source/engine/opengl') diff --git a/slideshow/source/engine/opengl/TransitionImpl.cxx b/slideshow/source/engine/opengl/TransitionImpl.cxx index 758b4a7d4d73..1e9c661d6c09 100644 --- a/slideshow/source/engine/opengl/TransitionImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionImpl.cxx @@ -1997,12 +1997,6 @@ void GlitterTransition::prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int3 PermTextureTransition::prepareTransition( glLeavingSlideTex, glEnteringSlideTex, pContext ); CHECK_GL_ERROR(); - GLint nNumTilesLocation = glGetUniformLocation(m_nProgramObject, "numTiles"); - if (nNumTilesLocation != -1) { - glUniform2iv(nNumTilesLocation, 1, glm::value_ptr(glm::ivec2(41, 41 * 4 / 3))); - CHECK_GL_ERROR(); - } - glGenBuffers(1, &maBuffer); glBindBuffer(GL_ARRAY_BUFFER, maBuffer); -- cgit