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
b657cd5f
Commit
b657cd5f
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_GetRenderTarget.".
This reverts commit
a7518f6f
.
parent
f5204b8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
device.c
dlls/d3d8/device.c
+1
-0
device.c
dlls/d3d9/device.c
+1
-0
device.c
dlls/wined3d/device.c
+3
-1
No files found.
dlls/d3d8/device.c
View file @
b657cd5f
...
@@ -677,6 +677,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetRenderTarget(LPDIRECT3DDEVICE8 i
...
@@ -677,6 +677,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetRenderTarget(LPDIRECT3DDEVICE8 i
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
IWineD3DResource_GetParent
((
IWineD3DResource
*
)
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3DResource_GetParent
((
IWineD3DResource
*
)
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3DResource_Release
((
IWineD3DResource
*
)
pRenderTarget
);
}
else
{
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
*
ppRenderTarget
=
NULL
;
*
ppRenderTarget
=
NULL
;
...
...
dlls/d3d9/device.c
View file @
b657cd5f
...
@@ -403,6 +403,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9 i
...
@@ -403,6 +403,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9 i
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
IWineD3DResource_GetParent
((
IWineD3DResource
*
)
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3DResource_GetParent
((
IWineD3DResource
*
)
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3DResource_Release
((
IWineD3DResource
*
)
pRenderTarget
);
}
else
{
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
*
ppRenderTarget
=
NULL
;
*
ppRenderTarget
=
NULL
;
...
...
dlls/wined3d/device.c
View file @
b657cd5f
...
@@ -6898,7 +6898,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface
...
@@ -6898,7 +6898,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface
*
ppRenderTarget
=
This
->
renderTarget
;
*
ppRenderTarget
=
This
->
renderTarget
;
TRACE
(
"(%p) : RenderTarget %d Index returning %p
\n
"
,
This
,
RenderTargetIndex
,
*
ppRenderTarget
);
TRACE
(
"(%p) : RenderTarget %d Index returning %p
\n
"
,
This
,
RenderTargetIndex
,
*
ppRenderTarget
);
/* Note inc ref on returned surface */
if
(
*
ppRenderTarget
!=
NULL
)
IWineD3DSurface_AddRef
(
*
ppRenderTarget
);
return
WINED3D_OK
;
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