浏览代码

Fix videos being flipped vertically (missed from last commit)

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 3 年之前
父节点
当前提交
56ebb78287
共有 1 个文件被更改,包括 5 次插入 和 5 次删除
  1. 5 5
      src/WallpaperEngine/Render/CVideo.cpp

+ 5 - 5
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, 0.0f,
-        1.0f, 0.0f,
-        0.0f, 1.0f,
         0.0f, 1.0f,
-        1.0f, 0.0f,
-        1.0f, 1.0f
+        1.0f, 1.0f,
+        0.0f, 0.0f,
+        0.0f, 0.0f,
+        1.0f, 1.0f,
+        1.0f, 0.0f
     };
 
     // inverted positions so the final texture is rendered properly