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
8350e026
Commit
8350e026
authored
Jan 26, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_uint32_compare() in glsl_program_key_compare().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ceb99946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
glsl_shader.c
dlls/wined3d/glsl_shader.c
+13
-17
No files found.
dlls/wined3d/glsl_shader.c
View file @
8350e026
...
@@ -10978,24 +10978,20 @@ static int glsl_program_key_compare(const void *key, const struct wine_rb_entry
...
@@ -10978,24 +10978,20 @@ static int glsl_program_key_compare(const void *key, const struct wine_rb_entry
const
struct
glsl_program_key
*
k
=
key
;
const
struct
glsl_program_key
*
k
=
key
;
const
struct
glsl_shader_prog_link
*
prog
=
WINE_RB_ENTRY_VALUE
(
entry
,
const
struct
glsl_shader_prog_link
*
prog
=
WINE_RB_ENTRY_VALUE
(
entry
,
const
struct
glsl_shader_prog_link
,
program_lookup_entry
);
const
struct
glsl_shader_prog_link
,
program_lookup_entry
);
int
ret
;
if
(
k
->
vs_id
>
prog
->
vs
.
id
)
return
1
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
vs_id
,
prog
->
vs
.
id
)))
else
if
(
k
->
vs_id
<
prog
->
vs
.
id
)
return
-
1
;
return
ret
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
gs_id
,
prog
->
gs
.
id
)))
if
(
k
->
gs_id
>
prog
->
gs
.
id
)
return
1
;
return
ret
;
else
if
(
k
->
gs_id
<
prog
->
gs
.
id
)
return
-
1
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
ps_id
,
prog
->
ps
.
id
)))
return
ret
;
if
(
k
->
ps_id
>
prog
->
ps
.
id
)
return
1
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
hs_id
,
prog
->
hs
.
id
)))
else
if
(
k
->
ps_id
<
prog
->
ps
.
id
)
return
-
1
;
return
ret
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
ds_id
,
prog
->
ds
.
id
)))
if
(
k
->
hs_id
>
prog
->
hs
.
id
)
return
1
;
return
ret
;
else
if
(
k
->
hs_id
<
prog
->
hs
.
id
)
return
-
1
;
if
((
ret
=
wined3d_uint32_compare
(
k
->
cs_id
,
prog
->
cs
.
id
)))
return
ret
;
if
(
k
->
ds_id
>
prog
->
ds
.
id
)
return
1
;
else
if
(
k
->
ds_id
<
prog
->
ds
.
id
)
return
-
1
;
if
(
k
->
cs_id
>
prog
->
cs
.
id
)
return
1
;
else
if
(
k
->
cs_id
<
prog
->
cs
.
id
)
return
-
1
;
return
0
;
return
0
;
}
}
...
...
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