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
ef8a634c
Commit
ef8a634c
authored
Oct 31, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Oct 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear should not be affected by write masks.
parent
7370f601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
device.c
dlls/d3d8/device.c
+2
-0
No files found.
dlls/d3d8/device.c
View file @
ef8a634c
...
...
@@ -1363,6 +1363,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
glClearStencil
(
Stencil
);
checkGLcall
(
"glClearStencil"
);
glMask
=
glMask
|
GL_STENCIL_BUFFER_BIT
;
glStencilMask
(
0xFFFFFFFF
);
}
if
(
Flags
&
D3DCLEAR_ZBUFFER
)
{
...
...
@@ -1419,6 +1420,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
/* Restore the old values (why..?) */
if
(
Flags
&
D3DCLEAR_STENCIL
)
{
glClearStencil
(
old_stencil_clear_value
);
glStencilMask
(
This
->
StateBlock
->
renderstate
[
D3DRS_STENCILWRITEMASK
]);
}
if
(
Flags
&
D3DCLEAR_ZBUFFER
)
{
glDepthMask
(
old_ztest
);
...
...
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