Skip to content

Commit

Permalink
D3D11: correctly handle non-square matrices with mColumnMajorMatrices…
Browse files Browse the repository at this point in the history
… = false
  • Loading branch information
paroj committed Jan 18, 2024
1 parent 3f38002 commit 7cb8ab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RenderSystems/Direct3D11/src/OgreD3D11HLSLProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,9 @@ namespace Ogre {
} // columns
break;
case D3D10_SVT_FLOAT:
if(d3dDesc.Rows > 1 && mColumnMajorMatrices)
std::swap(d3dDesc.Rows, d3dDesc.Columns);

switch(d3dDesc.Rows)
{
case 1:
Expand Down

0 comments on commit 7cb8ab6

Please sign in to comment.