tdf#91456 OpenGL context rendered without slide on it
When an OpenGL transition is initialized the screen might show
for a short time a black screen, because the slide was not directly
drawn onto the context and therefore a short black flash was visible
on the beginning of the silde transition.
This issue did on my side only occur, when the slide was changed
by going to a specific slide, moving to the next slide was fine, like
shown in the recorded video in the bug tracker. It seems that all
events which are going over the EventMultiplexer are not having
this flickering issue, as the moments when the drawing is
happening are different.
Change-Id: If57d9518e74d3a2ede166fd7e55ef5b290274109
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135031
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 398ceced15ee4fdd24b1f8db5e09096c3afa4804)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136534
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx
index f3cc33a..faef779 100644
--- a/slideshow/source/engine/opengl/TransitionerImpl.cxx
+++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx
@@ -444,6 +444,12 @@ bool OGLTransitionerImpl::setTransition( const std::shared_ptr<OGLTransitionImpl
}
impl_prepareSlides();
// tdf#91456: When the OpenGL context is initialized but nothing has been rendered on it
// it can happen, that an "empty" screen is drawn. Therefore, drawing the content of time 0
// onto the context
update(0);
return true;
}