From 717960f15f9860dcec8d7f8e14bc0325f443825a Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 19 Dec 2023 12:46:17 +0100 Subject: [PATCH] texture flip fixed --- src/nodes/QskSceneTexture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nodes/QskSceneTexture.cpp b/src/nodes/QskSceneTexture.cpp index 1f3f313b..7613d333 100644 --- a/src/nodes/QskSceneTexture.cpp +++ b/src/nodes/QskSceneTexture.cpp @@ -102,8 +102,9 @@ namespace const bool flipFramebuffer = true; const bool flipMatrix = false; #else + const auto rhi = context()->rhi(); const bool flipFramebuffer = rhi->isYUpInFramebuffer(); - const bool flipMatrix = rhi->isYUpInNDC(); + const bool flipMatrix = !rhi->isYUpInNDC(); #endif auto r = rect;