Commit edb802a8 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Remove min() in set_matrix_array(), uses always the desc value.

parent b5b05207
......@@ -1187,13 +1187,13 @@ static HRESULT set_matrix_array(ID3DXConstantTable *iface, IDirect3DDevice9 *dev
{
if (desc->Class == D3DXPC_VECTOR) return D3D_OK;
num_rows = min(desc->Rows, rows);
num_columns = min(desc->Columns, columns);
num_rows = desc->Rows;
num_columns = desc->Columns;
}
else
{
num_rows = min(desc->Columns, columns);
num_columns = min(desc->Rows, rows);
num_rows = desc->Columns;
num_columns = desc->Rows;
}
registers_per_matrix = (desc->Class == D3DXPC_MATRIX_COLUMNS) ? desc->Columns : desc->Rows;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment