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
5029331f
Commit
5029331f
authored
Sep 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_state structure to find_arb_ps_compile_args().
parent
e5ef8057
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-4
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5029331f
...
...
@@ -4390,13 +4390,12 @@ static struct arb_vs_compiled_shader *find_arb_vshader(IWineD3DVertexShaderImpl
return
&
shader_data
->
gl_shaders
[
shader_data
->
num_gl_shaders
++
];
}
static
inline
void
find_arb_ps_compile_args
(
IWineD3DPixelShaderImpl
*
shader
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
arb_ps_compile_args
*
args
)
static
void
find_arb_ps_compile_args
(
const
struct
wined3d_state
*
state
,
IWineD3DPixelShaderImpl
*
shader
,
struct
arb_ps_compile_args
*
args
)
{
int
i
;
WORD
int_skip
;
const
struct
wined3d_gl_info
*
gl_info
=
&
((
IWineD3DDeviceImpl
*
)
shader
->
baseShader
.
device
)
->
adapter
->
gl_info
;
const
struct
wined3d_state
*
state
=
&
stateblock
->
state
;
find_ps_compile_args
(
state
,
shader
,
&
args
->
super
);
...
...
@@ -4538,7 +4537,7 @@ static void shader_arb_select(const struct wined3d_context *context, BOOL usePS,
struct
arb_ps_compiled_shader
*
compiled
;
TRACE
(
"Using pixel shader %p.
\n
"
,
ps
);
find_arb_ps_compile_args
(
ps
,
This
->
stateBlock
,
&
compile_args
);
find_arb_ps_compile_args
(
state
,
ps
,
&
compile_args
);
compiled
=
find_arb_pshader
(
ps
,
&
compile_args
);
priv
->
current_fprogram_id
=
compiled
->
prgId
;
priv
->
compiled_fprog
=
compiled
;
...
...
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