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
a6dc31e4
Commit
a6dc31e4
authored
Jun 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid comparing shader compile args if the relevant shader isn't present.
parent
0e1d18ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-10
No files found.
dlls/wined3d/glsl_shader.c
View file @
a6dc31e4
...
...
@@ -3958,15 +3958,9 @@ static void set_glsl_shader_program(IWineD3DDevice *iface, BOOL use_ps, BOOL use
if
(
use_vs
)
{
find_vs_compile_args
((
IWineD3DVertexShaderImpl
*
)
This
->
stateBlock
->
vertexShader
,
This
->
stateBlock
,
&
vs_compile_args
);
}
else
{
/* FIXME: Do we really have to spend CPU cycles to generate a few zeroed bytes? */
memset
(
&
vs_compile_args
,
0
,
sizeof
(
vs_compile_args
));
}
if
(
use_ps
)
{
find_ps_compile_args
((
IWineD3DPixelShaderImpl
*
)
This
->
stateBlock
->
pixelShader
,
This
->
stateBlock
,
&
ps_compile_args
);
}
else
{
/* FIXME: Do we really have to spend CPU cycles to generate a few zeroed bytes? */
memset
(
&
ps_compile_args
,
0
,
sizeof
(
ps_compile_args
));
}
entry
=
get_glsl_program_entry
(
priv
,
vshader
,
pshader
,
&
vs_compile_args
,
&
ps_compile_args
);
if
(
entry
)
{
...
...
@@ -4399,11 +4393,10 @@ static int glsl_program_key_compare(const void *key, const struct wine_rb_entry
if
(
k
->
pshader
>
prog
->
pshader
)
return
1
;
else
if
(
k
->
pshader
<
prog
->
pshader
)
return
-
1
;
cmp
=
memcmp
(
&
k
->
vs_args
,
&
prog
->
vs_args
,
sizeof
(
prog
->
vs_args
))
;
if
(
cmp
)
return
cmp
;
if
(
k
->
vshader
&&
(
cmp
=
memcmp
(
&
k
->
vs_args
,
&
prog
->
vs_args
,
sizeof
(
prog
->
vs_args
))))
return
cmp
;
if
(
k
->
pshader
&&
(
cmp
=
memcmp
(
&
k
->
ps_args
,
&
prog
->
ps_args
,
sizeof
(
prog
->
ps_args
)))
)
return
cmp
;
cmp
=
memcmp
(
&
k
->
ps_args
,
&
prog
->
ps_args
,
sizeof
(
prog
->
ps_args
));
return
cmp
;
return
0
;
}
static
BOOL
constant_heap_init
(
struct
constant_heap
*
heap
,
unsigned
int
constant_count
)
...
...
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