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>
This commit is contained in:
parent
d620821608
commit
d5c5732ada
2 changed files with 0 additions and 7 deletions
|
@ -25,7 +25,6 @@ varying vec3 v_normal;
|
|||
|
||||
attribute vec3 center;
|
||||
uniform float time;
|
||||
uniform ivec2 numTiles;
|
||||
uniform sampler2D permTexture;
|
||||
varying float angle;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue