Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
edb802a8
Commit
edb802a8
authored
Aug 28, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Aug 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Remove min() in set_matrix_array(), uses always the desc value.
parent
b5b05207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shader.c
dlls/d3dx9_36/shader.c
+4
-4
No files found.
dlls/d3dx9_36/shader.c
View file @
edb802a8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment