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
d9567b76
Commit
d9567b76
authored
Jan 20, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Jan 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix not released swapchain in some codepaths.
parent
320e2538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
surface.c
dlls/wined3d/surface.c
+2
-1
No files found.
dlls/wined3d/surface.c
View file @
d9567b76
...
...
@@ -1121,13 +1121,14 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
IWineD3DSurface_GetContainer
(
iface
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
(
swapchain
||
(
myDevice
->
render_targets
&&
iface
==
myDevice
->
render_targets
[
0
]))
{
if
(
swapchain
)
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
if
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_DISABLE
)
{
static
BOOL
warned
=
FALSE
;
if
(
!
warned
)
{
ERR
(
"The application tries to write to the render target, but render target locking is disabled
\n
"
);
warned
=
TRUE
;
}
if
(
swapchain
)
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
goto
unlock_end
;
}
...
...
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