Skip to content

opengl: fix 2x3 matrix multiplication

Romain Vimont requested to merge rom1v/vlc:fix_matrix_multiplication into master

To multiply two 2x3 matrices, the right matrix must be expanded to 3x3, by adding a row [0 0 1], so that the dimensions match (2x3 x 3x3 = 2x3).

The matrix multiplication was erroneous: it behaved as if the matrix was expanded by an implicit row [1 1 1] instead.

The error has been introduced by 31c20009.

Edited by Romain Vimont

Merge request reports

Loading