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
e49c4808
Commit
e49c4808
authored
Apr 16, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Apr 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't try to clear the depth stencil if there is none.
parent
deeeda68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
swapchain.c
dlls/wined3d/swapchain.c
+9
-3
No files found.
dlls/wined3d/swapchain.c
View file @
e49c4808
...
...
@@ -147,6 +147,7 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_Present
(
IWineD3DSwapChain
*
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
DWORD
clear_flags
=
0
;
ENTER_GL
();
...
...
@@ -293,18 +294,23 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
#endif
LEAVE_GL
();
if
(
This
->
wineD3DDevice
->
stencilBufferTarget
)
{
clear_flags
|=
WINED3DCLEAR_STENCIL
|
WINED3DCLEAR_ZBUFFER
;
}
/* Although this is not strictly required, a simple demo showed this does occur
on (at least non-debug) d3d */
if
(
This
->
presentParms
.
SwapEffect
==
WINED3DSWAPEFFECT_DISCARD
)
{
TRACE
(
"Clearing
\n
"
);
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
,
0
,
NULL
,
WINED3DCLEAR_STENCIL
|
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_TARGET
,
0x00
,
1
.
0
,
0
);
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
,
0
,
NULL
,
clear_flags
|
WINED3DCLEAR_TARGET
,
0x00
,
1
.
0
,
0
);
}
else
{
}
else
if
(
clear_flags
)
{
TRACE
(
"Clearing z/stencil buffer
\n
"
);
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
,
0
,
NULL
,
WINED3DCLEAR_STENCIL
|
WINED3DCLEAR_ZBUFFER
,
0x00
,
1
.
0
,
0
);
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
,
0
,
NULL
,
clear_flags
,
0x00
,
1
.
0
,
0
);
}
if
(((
IWineD3DSurfaceImpl
*
)
This
->
frontBuffer
)
->
Flags
&
SFLAG_INSYSMEM
||
...
...
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