Skip to content

Commit 8456936

Browse files
committed
Fixed bug in the promote_affine function
1 parent 98d8151 commit 8456936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/math/linalg/transform.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ matrix<T, NOut, MOut> promote_affine(const matrix<T, NIn, MIn> inMatrix)
8888
NBL_UNROLL for (uint32_t row_i = NIn; row_i < NOut; row_i++)
8989
{
9090
retval[row_i] = promote<out_row_t>(0.0);
91-
if (row_i >= MIn && row_i < MOut)
91+
if (row_i < MOut)
9292
retval[row_i][row_i] = T(1.0);
9393
}
9494
return retval;

0 commit comments

Comments
 (0)