texture flip fixed

This commit is contained in:
Uwe Rathmann 2023-12-19 12:46:17 +01:00
parent 862e566507
commit 717960f15f
1 changed files with 2 additions and 1 deletions

View File

@ -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;