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
9e69b86a
Commit
9e69b86a
authored
Jun 03, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Introduce volumetexture_cleanup().
parent
b0ba731b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
volumetexture.c
dlls/wined3d/volumetexture.c
+23
-10
No files found.
dlls/wined3d/volumetexture.c
View file @
9e69b86a
...
...
@@ -26,6 +26,26 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_texture
);
#define GLINFO_LOCATION This->resource.wineD3DDevice->adapter->gl_info
static
void
volumetexture_cleanup
(
IWineD3DVolumeTextureImpl
*
This
,
D3DCB_DESTROYVOLUMEFN
volume_destroy_cb
)
{
unsigned
int
i
;
TRACE
(
"(%p) : Cleaning up.
\n
"
,
This
);
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
++
i
)
{
IWineD3DVolume
*
volume
=
This
->
volumes
[
i
];
if
(
volume
)
{
/* Cleanup the container. */
IWineD3DVolume_SetContainer
(
volume
,
NULL
);
volume_destroy_cb
(
volume
);
}
}
basetexture_cleanup
((
IWineD3DBaseTexture
*
)
This
);
}
/* *******************************************
IWineD3DTexture IUnknown parts follow
******************************************* */
...
...
@@ -216,16 +236,9 @@ static BOOL WINAPI IWineD3DVolumeTextureImpl_IsCondNP2(IWineD3DVolumeTexture *if
******************************************* */
static
void
WINAPI
IWineD3DVolumeTextureImpl_Destroy
(
IWineD3DVolumeTexture
*
iface
,
D3DCB_DESTROYVOLUMEFN
D3DCB_DestroyVolume
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
unsigned
int
i
;
TRACE
(
"(%p) : Cleaning up
\n
"
,
This
);
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
i
++
)
{
if
(
This
->
volumes
[
i
]
!=
NULL
)
{
/* Cleanup the container */
IWineD3DVolume_SetContainer
(
This
->
volumes
[
i
],
0
);
D3DCB_DestroyVolume
(
This
->
volumes
[
i
]);
}
}
basetexture_cleanup
((
IWineD3DBaseTexture
*
)
iface
);
volumetexture_cleanup
(
This
,
D3DCB_DestroyVolume
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
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