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
478a414e
Commit
478a414e
authored
Nov 20, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Nov 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Remove AddRef from IWineD3DDevice_GetBackBuffer.
parent
167b83c2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
9 deletions
+0
-9
device.c
dlls/d3d8/device.c
+0
-1
swapchain.c
dlls/d3d8/swapchain.c
+0
-1
device.c
dlls/d3d9/device.c
+0
-1
swapchain.c
dlls/d3d9/swapchain.c
+0
-1
ddraw.c
dlls/ddraw/ddraw.c
+0
-3
swapchain.c
dlls/wined3d/swapchain.c
+0
-2
No files found.
dlls/d3d8/device.c
View file @
478a414e
...
...
@@ -295,7 +295,6 @@ 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 @
478a414e
...
...
@@ -80,7 +80,6 @@ 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 @
478a414e
...
...
@@ -205,7 +205,6 @@ 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 @
478a414e
...
...
@@ -88,7 +88,6 @@ 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 @
478a414e
...
...
@@ -1212,9 +1212,6 @@ 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 @
478a414e
...
...
@@ -461,8 +461,6 @@ 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