From 0266a6e7e6239034d9810f7ea975ba1a33600db0 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 15 Feb 2022 22:34:26 +0100 Subject: [PATCH] Fixed a video fade-in issue when using the GLES renderer. --- es-core/src/components/VideoFFmpegComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/VideoFFmpegComponent.cpp b/es-core/src/components/VideoFFmpegComponent.cpp index aba309809..451796dc3 100644 --- a/es-core/src/components/VideoFFmpegComponent.cpp +++ b/es-core/src/components/VideoFFmpegComponent.cpp @@ -147,8 +147,8 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans) unsigned int rectColor {0x000000FF}; if (mThemeOpacity != 1.0f) { - color = (static_cast(mThemeOpacity * 255.0f) << 24) + 0x00FFFFFF; - rectColor = static_cast(mThemeOpacity * 255.0f); + color = (static_cast(mThemeOpacity * mFadeIn * 255.0f) << 24) + 0x00FFFFFF; + rectColor = static_cast(mThemeOpacity * mFadeIn * 255.0f); } // Render the black rectangle behind the video.