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
33bfcdd0
Commit
33bfcdd0
authored
Sep 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: The ddraw surface is now always the wined3d surface's parent.
This GetParent() trick would now cause infinite recursion.
parent
cd96c6e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
surface.c
dlls/ddraw/surface.c
+0
-37
No files found.
dlls/ddraw/surface.c
View file @
33bfcdd0
...
...
@@ -365,43 +365,6 @@ IDirectDrawSurfaceImpl_Release(IDirectDrawSurface7 *iface)
*/
TRACE
(
"(%p) D3D unloaded
\n
"
,
This
);
}
else
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_3DDEVICE
|
DDSCAPS_TEXTURE
)
)
{
/* It's a render target, but no swapchain was created.
* The IParent interfaces have to be released manually.
* The same applies for textures without an
* IWineD3DTexture object attached
*/
IParent
*
Parent
;
for
(
i
=
0
;
i
<
MAX_COMPLEX_ATTACHED
;
i
++
)
{
if
(
This
->
complex_array
[
i
])
{
/* Only the topmost level can have more than 1 surfaces in the complex
* attachment array(Cube texture roots), for all others there is only
* one
*/
surf
=
This
->
complex_array
[
i
];
while
(
surf
)
{
IWineD3DSurface_GetParent
(
surf
->
WineD3DSurface
,
(
IUnknown
**
)
&
Parent
);
IParent_Release
(
Parent
);
/* For the getParent */
IParent_Release
(
Parent
);
/* To release it */
surf
=
surf
->
complex_array
[
0
];
}
}
}
/* Now the top-level surface */
IWineD3DSurface_GetParent
(
This
->
WineD3DSurface
,
(
IUnknown
**
)
&
Parent
);
IParent_Release
(
Parent
);
/* For the getParent */
IParent_Release
(
Parent
);
/* To release it */
}
/* The refcount test shows that the palette is detached when the surface is destroyed */
IDirectDrawSurface7_SetPalette
((
IDirectDrawSurface7
*
)
This
,
NULL
);
...
...
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