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
59268f79
Commit
59268f79
authored
May 29, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Having a NULL rendertarget isn't a failure.
parent
56545447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
device.c
dlls/d3d9/device.c
+13
-6
No files found.
dlls/d3d9/device.c
View file @
59268f79
...
...
@@ -851,8 +851,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetRenderTarget(LPDIRECT3DDEVICE9EX
static
HRESULT
WINAPI
IDirect3DDevice9Impl_GetRenderTarget
(
LPDIRECT3DDEVICE9EX
iface
,
DWORD
RenderTargetIndex
,
IDirect3DSurface9
**
ppRenderTarget
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
HRESULT
hr
=
D3D_OK
;
IWineD3DSurface
*
pRenderTarget
;
HRESULT
hr
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -863,13 +863,20 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9EX
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DDevice_GetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
&
pRenderTarget
);
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
IWineD3DSurface_GetParent
(
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3DSurface_Release
(
pRenderTarget
);
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
if
(
FAILED
(
hr
))
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed, hr %#x
\n
"
,
hr
);
}
else
if
(
!
pRenderTarget
)
{
*
ppRenderTarget
=
NULL
;
}
else
{
IWineD3DSurface_GetParent
(
pRenderTarget
,
(
IUnknown
**
)
ppRenderTarget
);
IWineD3DSurface_Release
(
pRenderTarget
);
}
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
...
...
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