Fixed a video fade-in issue when using the GLES renderer.

This commit is contained in:
Leon Styhre 2022-02-15 22:34:26 +01:00
parent 8f6565b9f0
commit 0266a6e7e6

View file

@ -147,8 +147,8 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans)
unsigned int rectColor {0x000000FF};
if (mThemeOpacity != 1.0f) {
color = (static_cast<int>(mThemeOpacity * 255.0f) << 24) + 0x00FFFFFF;
rectColor = static_cast<int>(mThemeOpacity * 255.0f);
color = (static_cast<int>(mThemeOpacity * mFadeIn * 255.0f) << 24) + 0x00FFFFFF;
rectColor = static_cast<int>(mThemeOpacity * mFadeIn * 255.0f);
}
// Render the black rectangle behind the video.