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
40111053
Commit
40111053
authored
Feb 19, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check volume texture creation errors.
Volumetexture::Release checks for NULL pointers, so releasing a partially created texture works.
parent
3f5458dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
device.c
dlls/wined3d/device.c
+10
-2
No files found.
dlls/wined3d/device.c
View file @
40111053
...
...
@@ -939,9 +939,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
for
(
i
=
0
;
i
<
object
->
baseTexture
.
levels
;
i
++
)
{
HRESULT
hr
;
/* Create the volume */
D3DCB_CreateVolume
(
This
->
parent
,
parent
,
Width
,
Height
,
Depth
,
Format
,
Pool
,
Usage
,
(
IWineD3DVolume
**
)
&
object
->
volumes
[
i
],
pSharedHandle
);
hr
=
D3DCB_CreateVolume
(
This
->
parent
,
parent
,
Width
,
Height
,
Depth
,
Format
,
Pool
,
Usage
,
(
IWineD3DVolume
**
)
&
object
->
volumes
[
i
],
pSharedHandle
);
if
(
FAILED
(
hr
))
{
ERR
(
"Creating a volume for the volume texture failed(%08x)
\n
"
,
hr
);
IWineD3DVolumeTexture_Release
((
IWineD3DVolumeTexture
*
)
object
);
*
ppVolumeTexture
=
NULL
;
return
hr
;
}
/* Set its container to this object */
IWineD3DVolume_SetContainer
(
object
->
volumes
[
i
],
(
IWineD3DBase
*
)
object
);
...
...
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