From 56ebb782871e68b296eec629a51ddbdf668bcba3 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Fri, 4 Nov 2022 19:09:29 +0100 Subject: [PATCH] Fix videos being flipped vertically (missed from last commit) Signed-off-by: Alexis Maiquez --- src/WallpaperEngine/Render/CVideo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/WallpaperEngine/Render/CVideo.cpp b/src/WallpaperEngine/Render/CVideo.cpp index 7ee35f3..dd73d80 100644 --- a/src/WallpaperEngine/Render/CVideo.cpp +++ b/src/WallpaperEngine/Render/CVideo.cpp @@ -70,12 +70,12 @@ CVideo::CVideo (Core::CVideo* video, CContext* context) : throw std::runtime_error ("Failed to allocate video frame"); GLfloat texCoords [] = { + 0.0f, 1.0f, + 1.0f, 1.0f, 0.0f, 0.0f, - 1.0f, 0.0f, - 0.0f, 1.0f, - 0.0f, 1.0f, - 1.0f, 0.0f, - 1.0f, 1.0f + 0.0f, 0.0f, + 1.0f, 1.0f, + 1.0f, 0.0f }; // inverted positions so the final texture is rendered properly