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
7e7549ab
Commit
7e7549ab
authored
Jul 01, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Handle ST_PARAMETER in d3dx9_parse resource().
parent
05eef50e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
effect.c
dlls/d3dx9_36/effect.c
+11
-3
No files found.
dlls/d3dx9_36/effect.c
View file @
7e7549ab
...
...
@@ -88,6 +88,7 @@ enum SHADER_CONSTANT_TYPE
enum
STATE_TYPE
{
ST_CONSTANT
,
ST_PARAMETER
,
ST_FXLC
,
};
...
...
@@ -4739,7 +4740,7 @@ static HRESULT d3dx9_parse_resource(struct ID3DXBaseEffectImpl *base, const char
DWORD
index
,
state_index
,
usage
;
struct
d3dx_state
*
state
;
struct
d3dx_parameter
*
param
;
HRESULT
hr
;
HRESULT
hr
=
E_FAIL
;
read_dword
(
ptr
,
&
technique_index
);
TRACE
(
"techn: %u
\n
"
,
technique_index
);
...
...
@@ -4828,14 +4829,21 @@ static HRESULT d3dx9_parse_resource(struct ID3DXBaseEffectImpl *base, const char
default:
FIXME
(
"Unhandled type %s
\n
"
,
debug_d3dxparameter_type
(
param
->
type
));
hr
=
E_FAIL
;
break
;
}
break
;
case
1
:
state
->
type
=
ST_PARAMETER
;
hr
=
d3dx9_copy_data
(
param
->
data
,
ptr
);
if
(
hr
==
D3D_OK
)
{
TRACE
(
"Mapping to parameter %s
\n
"
,
*
(
char
**
)
param
->
data
);
}
break
;
default:
FIXME
(
"Unknown usage %x
\n
"
,
usage
);
hr
=
E_FAIL
;
break
;
}
...
...
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