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
82a800c1
Commit
82a800c1
authored
Sep 26, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Improve RegisterCount calculation for D3DXRS_INT4/BOOL.
parent
3eb26010
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
shader.c
dlls/d3dx9_36/shader.c
+21
-0
No files found.
dlls/d3dx9_36/shader.c
View file @
82a800c1
...
...
@@ -1644,6 +1644,27 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
/* offset in bytes => offsetdiff * components(4) * sizeof(DWORD) */
if
(
offset
)
*
offset
+=
offsetdiff
*
4
*
4
;
/* int and bool registerset have different sizes */
if
(
regset
==
D3DXRS_INT4
||
regset
==
D3DXRS_BOOL
)
{
switch
(
type
->
Class
)
{
case
D3DXPC_SCALAR
:
case
D3DXPC_VECTOR
:
size
=
type
->
Columns
;
break
;
case
D3DXPC_MATRIX_ROWS
:
case
D3DXPC_MATRIX_COLUMNS
:
size
=
4
*
type
->
Columns
;
break
;
default:
FIXME
(
"Unhandled type class %s
\n
"
,
debug_d3dxparameter_class
(
type
->
Class
));
break
;
}
}
}
constant
->
desc
.
RegisterCount
=
max
(
0
,
min
(
max
-
index
,
size
));
...
...
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