Skip to content

Commit 2dce27d

Browse files
authored
Merge pull request #908 from Devsh-Graphics-Programming/fix_unorthodox_matmul
Fix small bug in matrix preventing product of unorthodox matrix sizes
2 parents 2ca4181 + 6412ed8 commit 2dce27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/cpp_compat/matrix.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct matrix final : private glm::mat<N,M,T>
3434
template<uint16_t K>
3535
inline friend matrix<T, N, K> mul(matrix const& lhs, matrix<T, M, K> const& rhs)
3636
{
37-
return matrix<T, N, K>(glm::operator*(reinterpret_cast<Base const&>(rhs), reinterpret_cast<matrix<T, M, K>::Base const&>(lhs)));
37+
return matrix<T, N, K>(glm::operator*(reinterpret_cast<matrix<T, M, K>::Base const&>(rhs), reinterpret_cast<Base const&>(lhs)));
3838
}
3939
inline friend vector<T, N> mul(matrix const& lhs, vector<T, M> const& rhs)
4040
{

0 commit comments

Comments
 (0)