Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
088ed09e
Commit
088ed09e
authored
May 25, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
May 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Pass the device directly to d3dx9_parse_data().
parent
eb087ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
effect.c
dlls/d3dx9_36/effect.c
+4
-4
No files found.
dlls/d3dx9_36/effect.c
View file @
088ed09e
...
...
@@ -3519,7 +3519,7 @@ static HRESULT d3dx9_parse_name(char **name, const char *ptr)
return
D3D_OK
;
}
static
HRESULT
d3dx9_parse_data
(
struct
d3dx_parameter
*
param
,
const
char
**
ptr
)
static
HRESULT
d3dx9_parse_data
(
struct
d3dx_parameter
*
param
,
const
char
**
ptr
,
LPDIRECT3DDEVICE9
device
)
{
DWORD
size
;
HRESULT
hr
;
...
...
@@ -3549,7 +3549,7 @@ static HRESULT d3dx9_parse_data(struct d3dx_parameter *param, const char **ptr)
break
;
case
D3DXPT_VERTEXSHADER
:
hr
=
IDirect3DDevice9_CreateVertexShader
(
param
->
base
->
effect
->
device
,
(
DWORD
*
)
*
ptr
,
(
LPDIRECT3DVERTEXSHADER9
*
)
param
->
data
);
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
(
DWORD
*
)
*
ptr
,
(
LPDIRECT3DVERTEXSHADER9
*
)
param
->
data
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to create vertex shader
\n
"
);
...
...
@@ -3558,7 +3558,7 @@ static HRESULT d3dx9_parse_data(struct d3dx_parameter *param, const char **ptr)
break
;
case
D3DXPT_PIXELSHADER
:
hr
=
IDirect3DDevice9_CreatePixelShader
(
param
->
base
->
effect
->
device
,
(
DWORD
*
)
*
ptr
,
(
LPDIRECT3DPIXELSHADER9
*
)
param
->
data
);
hr
=
IDirect3DDevice9_CreatePixelShader
(
device
,
(
DWORD
*
)
*
ptr
,
(
LPDIRECT3DPIXELSHADER9
*
)
param
->
data
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to create pixel shader
\n
"
);
...
...
@@ -4252,7 +4252,7 @@ static HRESULT d3dx9_parse_effect(struct ID3DXBaseEffectImpl *base, const char *
param
=
get_parameter_struct
(
base
->
objects
[
id
]);
hr
=
d3dx9_parse_data
(
param
,
&
ptr
);
hr
=
d3dx9_parse_data
(
param
,
&
ptr
,
base
->
effect
->
device
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to parse data
\n
"
);
...
...
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