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
90b0ef65
Commit
90b0ef65
authored
Apr 26, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
May 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/shader: Use more proper integer types.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6b6561a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
shader.c
dlls/d3dx9_36/shader.c
+3
-3
No files found.
dlls/d3dx9_36/shader.c
View file @
90b0ef65
...
...
@@ -2695,7 +2695,7 @@ static HRESULT get_shader_semantics(const DWORD *byte_code, D3DXSEMANTIC *semant
D3DDECLUSAGE_FOG
,
D3DDECLUSAGE_PSIZE
};
DWORD
reg_type
,
usage
,
index
,
version_token
=
*
byte_code
;
uint32_t
reg_type
,
usage
,
index
,
version_token
=
*
byte_code
;
BOOL
is_ps
=
version_token
>>
16
==
0xffff
;
unsigned
int
major
,
minor
,
i
=
0
,
j
;
BYTE
colors
=
0
,
rastout
=
0
;
...
...
@@ -2717,8 +2717,8 @@ static HRESULT get_shader_semantics(const DWORD *byte_code, D3DXSEMANTIC *semant
{
if
(
has_dcl
&&
(
*
byte_code
&
0xffff
)
==
D3DSIO_DCL
)
{
DWORD
usage_token
=
byte_code
[
1
];
DWORD
reg
=
byte_code
[
2
];
uint32_t
usage_token
=
byte_code
[
1
];
uint32_t
reg
=
byte_code
[
2
];
reg_type
=
((
reg
&
D3DSP_REGTYPE_MASK
)
>>
D3DSP_REGTYPE_SHIFT
)
|
((
reg
&
D3DSP_REGTYPE_MASK2
)
>>
D3DSP_REGTYPE_SHIFT2
);
...
...
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