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

d3dx9: Clamp register count for D3DXPC_MATRIX_COLUMNS.

parent e9bd764a
......@@ -1137,7 +1137,7 @@ static UINT set(struct ID3DXConstantTableImpl *table, IDirect3DDevice9 *device,
break;
case D3DXPC_MATRIX_COLUMNS:
regcount = desc->Columns;
regcount = min(desc->RegisterCount, desc->Columns);
if (inclass == D3DXPC_MATRIX_ROWS) rin = incol;
else cin = incol;
regsize = 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