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
a03910c9
Commit
a03910c9
authored
Sep 20, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Properly cleanup shader variables.
parent
e95cff03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
effect.c
dlls/d3d10/effect.c
+30
-2
No files found.
dlls/d3d10/effect.c
View file @
a03910c9
...
...
@@ -2117,6 +2117,35 @@ static HRESULT d3d10_effect_object_apply(struct d3d10_effect_object *o)
}
}
static
void
d3d10_effect_shader_variable_destroy
(
struct
d3d10_effect_shader_variable
*
s
,
D3D10_SHADER_VARIABLE_TYPE
type
)
{
shader_free_signature
(
&
s
->
input_signature
);
shader_free_signature
(
&
s
->
output_signature
);
switch
(
type
)
{
case
D3D10_SVT_VERTEXSHADER
:
if
(
s
->
shader
.
vs
)
ID3D10VertexShader_Release
(
s
->
shader
.
vs
);
break
;
case
D3D10_SVT_PIXELSHADER
:
if
(
s
->
shader
.
ps
)
ID3D10PixelShader_Release
(
s
->
shader
.
ps
);
break
;
case
D3D10_SVT_GEOMETRYSHADER
:
if
(
s
->
shader
.
gs
)
ID3D10GeometryShader_Release
(
s
->
shader
.
gs
);
break
;
default:
FIXME
(
"Unhandled shader type %s.
\n
"
,
debug_d3d10_shader_variable_type
(
type
));
break
;
}
}
static
void
d3d10_effect_variable_destroy
(
struct
d3d10_effect_variable
*
v
)
{
unsigned
int
i
;
...
...
@@ -2159,8 +2188,7 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
case
D3D10_SVT_VERTEXSHADER
:
case
D3D10_SVT_PIXELSHADER
:
case
D3D10_SVT_GEOMETRYSHADER
:
shader_free_signature
(
&
((
struct
d3d10_effect_shader_variable
*
)
v
->
data
)
->
input_signature
);
shader_free_signature
(
&
((
struct
d3d10_effect_shader_variable
*
)
v
->
data
)
->
output_signature
);
d3d10_effect_shader_variable_destroy
(
v
->
data
,
v
->
type
->
basetype
);
break
;
default:
...
...
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