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
a5fbbbe4
Commit
a5fbbbe4
authored
Apr 26, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix flags for annotation structures.
parent
03204e99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
effect.c
dlls/d3dx9_36/effect.c
+8
-6
No files found.
dlls/d3dx9_36/effect.c
View file @
a5fbbbe4
...
...
@@ -3074,13 +3074,16 @@ static HRESULT d3dx9_parse_name(char **name, const char *ptr)
return
D3D_OK
;
}
static
HRESULT
d3dx9_parse_effect_typedef
(
struct
d3dx_parameter
*
param
,
const
char
*
data
,
const
char
**
ptr
,
struct
d3dx_parameter
*
parent
)
static
HRESULT
d3dx9_parse_effect_typedef
(
struct
d3dx_parameter
*
param
,
const
char
*
data
,
const
char
**
ptr
,
struct
d3dx_parameter
*
parent
,
UINT
flags
)
{
DWORD
offset
;
HRESULT
hr
;
D3DXHANDLE
*
member_handles
=
NULL
;
UINT
i
;
param
->
flags
=
flags
;
if
(
!
parent
)
{
read_dword
(
ptr
,
&
param
->
type
);
...
...
@@ -3157,7 +3160,6 @@ static HRESULT d3dx9_parse_effect_typedef(struct d3dx_parameter *param, const ch
param
->
annotation_count
=
0
;
param
->
member_count
=
parent
->
member_count
;
param
->
bytes
=
parent
->
bytes
;
param
->
flags
=
parent
->
flags
;
param
->
rows
=
parent
->
rows
;
param
->
columns
=
parent
->
columns
;
}
...
...
@@ -3191,7 +3193,7 @@ static HRESULT d3dx9_parse_effect_typedef(struct d3dx_parameter *param, const ch
member_handles
[
i
]
=
get_parameter_handle
(
member
);
member
->
base
=
param
->
base
;
hr
=
d3dx9_parse_effect_typedef
(
member
,
data
,
ptr
,
param
);
hr
=
d3dx9_parse_effect_typedef
(
member
,
data
,
ptr
,
param
,
flags
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to parse member
\n
"
);
...
...
@@ -3228,7 +3230,7 @@ static HRESULT d3dx9_parse_effect_typedef(struct d3dx_parameter *param, const ch
member_handles
[
i
]
=
get_parameter_handle
(
member
);
member
->
base
=
param
->
base
;
hr
=
d3dx9_parse_effect_typedef
(
member
,
data
,
ptr
,
NULL
);
hr
=
d3dx9_parse_effect_typedef
(
member
,
data
,
ptr
,
NULL
,
flags
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to parse member
\n
"
);
...
...
@@ -3281,7 +3283,7 @@ static HRESULT d3dx9_parse_effect_annotation(struct d3dx_parameter *anno, const
read_dword
(
ptr
,
&
offset
);
TRACE
(
"Typedef offset: %#x
\n
"
,
offset
);
ptr2
=
data
+
offset
;
hr
=
d3dx9_parse_effect_typedef
(
anno
,
data
,
&
ptr2
,
NULL
);
hr
=
d3dx9_parse_effect_typedef
(
anno
,
data
,
&
ptr2
,
NULL
,
D3DX_PARAMETER_ANNOTATION
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to parse type definition
\n
"
);
...
...
@@ -3321,7 +3323,7 @@ static HRESULT d3dx9_parse_effect_parameter(struct d3dx_parameter *param, const
read_dword
(
ptr
,
&
param
->
annotation_count
);
TRACE
(
"Annotation count: %u
\n
"
,
param
->
annotation_count
);
hr
=
d3dx9_parse_effect_typedef
(
param
,
data
,
&
ptr2
,
NULL
);
hr
=
d3dx9_parse_effect_typedef
(
param
,
data
,
&
ptr2
,
NULL
,
param
->
flags
);
if
(
hr
!=
D3D_OK
)
{
WARN
(
"Failed to parse type definition
\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