From 545ea04d281abae5d7cfecbc28223d878897a9c0 Mon Sep 17 00:00:00 2001 From: Christopher James Halse Rogers Date: Tue, 16 Jan 2024 21:55:12 +0000 Subject: [PATCH] Merge pull request #3188 from MirServer/laterality Fix transformation for Layout::TopRowFirst --- src/renderers/gl/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/gl/renderer.cpp b/src/renderers/gl/renderer.cpp index eed3bae9528..9448dd5ccf3 100644 --- a/src/renderers/gl/renderer.cpp +++ b/src/renderers/gl/renderer.cpp @@ -622,12 +622,12 @@ void mrg::Renderer::set_output_transform(glm::mat2 const& t) case graphics::gl::OutputSurface::Layout::TopRowFirst: // GL is going to render in its own coordinate system, but the OutputSurface // wants the output to be the other way up. Get GL to render upside-down instead. - new_display_transform *= glm::mat4{ + new_display_transform = glm::mat4{ 1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 - }; + } * new_display_transform; break; }