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
61608b71
Commit
61608b71
authored
Nov 17, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Nov 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If swap mode is discard, clear the backbuffer before moving onto the
next frame.
parent
96be4449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/d3d8/device.c
+8
-0
No files found.
dlls/d3d8/device.c
View file @
61608b71
...
...
@@ -483,6 +483,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_Present(LPDIRECT3DDEVICE8 iface, CONST REC
ENTER_GL
();
if
(
pSourceRect
||
pDestRect
)
FIXME
(
"Unhandled present options %p/%p
\n
"
,
pSourceRect
,
pDestRect
);
glXSwapBuffers
(
This
->
display
,
This
->
drawable
);
/* Dont call checkGLcall, as glGetError is not applicable here */
TRACE
(
"glXSwapBuffers called, Starting new frame
\n
"
);
...
...
@@ -541,6 +544,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_Present(LPDIRECT3DDEVICE8 iface, CONST REC
#endif
LEAVE_GL
();
/* Although this is not strictly required, a simple demo showed this does occur
on (at least non-debug) d3d */
if
(
This
->
PresentParms
.
SwapEffect
==
D3DSWAPEFFECT_DISCARD
)
{
IDirect3DDevice8Impl_Clear
(
iface
,
0
,
NULL
,
D3DCLEAR_STENCIL
|
D3DCLEAR_ZBUFFER
|
D3DCLEAR_TARGET
,
0x00
,
1
.
0
,
0
);
}
return
D3D_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