diff options
author | Javiya Vivekkumar Dineshbhai <vivek.javiya@collabora.com> | 2024-05-29 18:29:18 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-06-03 15:18:08 +0200 |
commit | d5c5732ada2f9f616e26ef514676adee2245c5e5 (patch) | |
tree | f258b35914b2e68437c3f3cffc0ea5680761375e /slideshow/source/engine/opengl | |
parent | d620821608a4b89d10ce4b93aa03e6e6d5d04fa8 (diff) |
Remove unused 'numTiles' from glitter vertex shader
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 <vivek.javiya@collabora.com>
Change-Id: Ia1f833e6009b1f8c774329945ba260d20b8c9f64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168222
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'slideshow/source/engine/opengl')
-rw-r--r-- | slideshow/source/engine/opengl/TransitionImpl.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
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); |