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
f8e7ddd7
Commit
f8e7ddd7
authored
Nov 30, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Nov 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "d3d: Remove AddRef from IWineD3DDevice_GetBackBuffer.".
This reverts commit
478a414e
.
parent
b657cd5f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/d3d8/device.c
+1
-0
swapchain.c
dlls/d3d8/swapchain.c
+1
-0
device.c
dlls/d3d9/device.c
+1
-0
swapchain.c
dlls/d3d9/swapchain.c
+1
-0
ddraw.c
dlls/ddraw/ddraw.c
+3
-0
swapchain.c
dlls/wined3d/swapchain.c
+2
-0
No files found.
dlls/d3d8/device.c
View file @
f8e7ddd7
...
...
@@ -295,6 +295,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetBackBuffer(LPDIRECT3DDEVICE8 iface
rc
=
IWineD3DDevice_GetBackBuffer
(
This
->
WineD3DDevice
,
0
,
BackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
(
IWineD3DSurface
**
)
&
retSurface
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retSurface
&&
NULL
!=
ppBackBuffer
)
{
IWineD3DSurface_GetParent
(
retSurface
,
(
IUnknown
**
)
ppBackBuffer
);
IWineD3DSurface_Release
(
retSurface
);
}
return
rc
;
}
...
...
dlls/d3d8/swapchain.c
View file @
f8e7ddd7
...
...
@@ -80,6 +80,7 @@ static HRESULT WINAPI IDirect3DSwapChain8Impl_GetBackBuffer(LPDIRECT3DSWAPCHAIN8
hrc
=
IWineD3DSwapChain_GetBackBuffer
(
This
->
wineD3DSwapChain
,
iBackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
&
mySurface
);
if
(
hrc
==
D3D_OK
&&
NULL
!=
mySurface
)
{
IWineD3DSurface_GetParent
(
mySurface
,
(
IUnknown
**
)
ppBackBuffer
);
IWineD3DSurface_Release
(
mySurface
);
}
return
hrc
;
}
...
...
dlls/d3d9/device.c
View file @
f8e7ddd7
...
...
@@ -205,6 +205,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetBackBuffer(LPDIRECT3DDEVICE9 ifa
rc
=
IWineD3DDevice_GetBackBuffer
(
This
->
WineD3DDevice
,
iSwapChain
,
BackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
(
IWineD3DSurface
**
)
&
retSurface
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retSurface
&&
NULL
!=
ppBackBuffer
)
{
IWineD3DSurface_GetParent
(
retSurface
,
(
IUnknown
**
)
ppBackBuffer
);
IWineD3DSurface_Release
(
retSurface
);
}
return
rc
;
}
...
...
dlls/d3d9/swapchain.c
View file @
f8e7ddd7
...
...
@@ -88,6 +88,7 @@ static HRESULT WINAPI IDirect3DSwapChain9Impl_GetBackBuffer(LPDIRECT3DSWAPCHAIN9
hrc
=
IWineD3DSwapChain_GetBackBuffer
(
This
->
wineD3DSwapChain
,
iBackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
&
mySurface
);
if
(
hrc
==
D3D_OK
&&
NULL
!=
mySurface
)
{
IWineD3DSurface_GetParent
(
mySurface
,
(
IUnknown
**
)
ppBackBuffer
);
IWineD3DSurface_Release
(
mySurface
);
}
/* Do not touch the **ppBackBuffer pointer otherwise! (see device test) */
return
hrc
;
...
...
dlls/ddraw/ddraw.c
View file @
f8e7ddd7
...
...
@@ -1212,6 +1212,9 @@ IDirectDrawImpl_GetGDISurface(IDirectDraw7 *iface,
return
DDERR_NOTFOUND
;
}
/* GetBackBuffer AddRef()ed the surface, release it */
IWineD3DSurface_Release
(
Surf
);
IWineD3DSurface_GetParent
(
Surf
,
(
IUnknown
**
)
&
ddsurf
);
IDirectDrawSurface7_Release
(
ddsurf
);
/* For the GetParent */
...
...
dlls/wined3d/swapchain.c
View file @
f8e7ddd7
...
...
@@ -461,6 +461,8 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *ifa
*
ppBackBuffer
=
This
->
backBuffer
[
iBackBuffer
];
TRACE
(
"(%p) : BackBuf %d Type %d returning %p
\n
"
,
This
,
iBackBuffer
,
Type
,
*
ppBackBuffer
);
/* Note inc ref on returned surface */
if
(
*
ppBackBuffer
)
IWineD3DSurface_AddRef
(
*
ppBackBuffer
);
return
WINED3D_OK
;
}
...
...
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