diff --git a/source/dk_device.h b/source/dk_device.h index 661d3a7..90ed378 100644 --- a/source/dk_device.h +++ b/source/dk_device.h @@ -99,7 +99,7 @@ class Device // Rasterizer expects clip space +Y to point down. In UpperLeft mode with Y pointing up // (or LowerLeft mode with Y pointing down) we need to flip the incoming Y coordinate. - bool viewportFlipY() const noexcept { return !isYAxisPointsDown() ^ !isOriginLowerLeft(); } + bool viewportFlipY() const noexcept { return isYAxisPointsDown() ^ !isOriginLowerLeft(); } DkResult initialize() noexcept; ~Device();