Skip to content

Commit

Permalink
Merge pull request #3188 from MirServer/laterality
Browse files Browse the repository at this point in the history
Fix transformation for Layout::TopRowFirst
  • Loading branch information
RAOF authored and AlanGriffiths committed Jan 17, 2024
1 parent 035bd8f commit 545ea04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/gl/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 545ea04

Please sign in to comment.