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
cc563b9c
Commit
cc563b9c
authored
Aug 14, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Return the correct return value in GetDepthStencilSurface.
parent
6857fc6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
device.c
dlls/d3d9/device.c
+11
-8
No files found.
dlls/d3d9/device.c
View file @
cc563b9c
...
...
@@ -593,16 +593,19 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDepthStencilSurface(LPDIRECT3DDE
}
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DDevice_GetDepthStencilSurface
(
This
->
WineD3DDevice
,
&
pZStencilSurface
);
if
(
hr
==
D3D_OK
&&
pZStencilSurface
!=
NULL
){
IWineD3DSurface_GetParent
(
pZStencilSurface
,(
IUnknown
**
)
ppZStencilSurface
);
IWineD3DSurface_Release
(
pZStencilSurface
);
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
*
ppZStencilSurface
=
NULL
;
hr
=
IWineD3DDevice_GetDepthStencilSurface
(
This
->
WineD3DDevice
,
&
pZStencilSurface
);
if
(
hr
==
D3D_OK
)
{
if
(
pZStencilSurface
!=
NULL
){
IWineD3DSurface_GetParent
(
pZStencilSurface
,(
IUnknown
**
)
ppZStencilSurface
);
IWineD3DSurface_Release
(
pZStencilSurface
);
}
else
{
*
ppZStencilSurface
=
NULL
;
}
}
else
{
WARN
(
"Call to IWineD3DDevice_GetDepthStencilSurface failed
\n
"
);
}
LeaveCriticalSection
(
&
d3d9_cs
);
return
D3D_OK
;
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_BeginScene
(
LPDIRECT3DDEVICE9
iface
)
{
...
...
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