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
d5ac732c
Commit
d5ac732c
authored
Nov 01, 2009
by
Rico Schüller
Committed by
Alexandre Julliard
Nov 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Initialize *->buffer for all effect variables.
parent
bd83a874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
effect.c
dlls/d3d10/effect.c
+9
-3
No files found.
dlls/d3d10/effect.c
View file @
d5ac732c
...
...
@@ -921,11 +921,12 @@ static HRESULT parse_fx10_pass(struct d3d10_effect_pass *p, const char **ptr, co
return
E_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
p
->
annotation_count
;
++
i
)
for
(
i
=
0
;
i
<
p
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
p
->
annotations
[
i
];
a
->
effect
=
p
->
technique
->
effect
;
a
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -980,11 +981,12 @@ static HRESULT parse_fx10_technique(struct d3d10_effect_technique *t, const char
return
E_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
t
->
annotation_count
;
++
i
)
for
(
i
=
0
;
i
<
t
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
t
->
annotations
[
i
];
a
->
effect
=
t
->
effect
;
a
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -1053,6 +1055,7 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char *
struct
d3d10_effect_variable
*
a
=
&
v
->
annotations
[
i
];
a
->
effect
=
v
->
effect
;
a
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -1142,6 +1145,7 @@ static HRESULT parse_fx10_local_variable(struct d3d10_effect_variable *v, const
struct
d3d10_effect_variable
*
a
=
&
v
->
annotations
[
i
];
a
->
effect
=
v
->
effect
;
a
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -1225,11 +1229,12 @@ static HRESULT parse_fx10_local_buffer(struct d3d10_effect_variable *l, const ch
return
E_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
l
->
annotation_count
;
++
i
)
for
(
i
=
0
;
i
<
l
->
annotation_count
;
++
i
)
{
struct
d3d10_effect_variable
*
a
=
&
l
->
annotations
[
i
];
a
->
effect
=
l
->
effect
;
a
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -1443,6 +1448,7 @@ static HRESULT parse_fx10_body(struct d3d10_effect *e, const char *data, DWORD d
v
->
effect
=
e
;
v
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
v
->
buffer
=
&
null_local_buffer
;
hr
=
parse_fx10_local_variable
(
v
,
&
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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