Kaydet (Commit) 60f6c757 authored tarafından David Tardon's avatar David Tardon

fix first run of shader-using 3D transitions

The slideshow engine emits viewChanged() immediately after the
transition has been initialized. Because the ShaderTransition data were
not fully reset in finishTransition_, no transition texture would be
generated on the re-initialization in viewChanged(), thus there would be
no transition on the first slide.

Change-Id: I04fef9a6c09537995d83889be2fe15569a1ddc2c
üst 5ff40663
...@@ -1449,6 +1449,11 @@ void ShaderTransition::finishTransition_() ...@@ -1449,6 +1449,11 @@ void ShaderTransition::finishTransition_()
OGLShaders::glDeleteProgram( m_nProgramObject ); OGLShaders::glDeleteProgram( m_nProgramObject );
m_nProgramObject = 0; m_nProgramObject = 0;
} }
if ( m_nHelperTexture )
{
glDeleteTextures( 1, &m_nHelperTexture );
m_nHelperTexture = 0;
}
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment