Skip to content

Commit 6412ed8

Browse files
committed
Fix small bug in matrix preventing product of unorthodox matrix sizes
1 parent 5145bad commit 6412ed8

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)