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
2e7e1188
Commit
2e7e1188
authored
Mar 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just mark the stencil write mask dirty in IWineD3DDeviceImpl_ClearSurface().
parent
1c4e9e6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
device.c
dlls/wined3d/device.c
+2
-5
No files found.
dlls/wined3d/device.c
View file @
2e7e1188
...
...
@@ -4397,10 +4397,11 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
glDisable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_TWOSIDEDSTENCILMODE
));
}
glStencilMask
(
~
0U
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_STENCILWRITEMASK
));
glClearStencil
(
Stencil
);
checkGLcall
(
"glClearStencil"
);
glMask
=
glMask
|
GL_STENCIL_BUFFER_BIT
;
glStencilMask
(
0xFFFFFFFF
);
}
if
(
Flags
&
WINED3DCLEAR_ZBUFFER
)
{
...
...
@@ -4484,10 +4485,6 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
}
}
/* Restore the old values (why..?) */
if
(
Flags
&
WINED3DCLEAR_STENCIL
)
{
glStencilMask
(
This
->
stateBlock
->
renderState
[
WINED3DRS_STENCILWRITEMASK
]);
}
if
(
Flags
&
WINED3DCLEAR_TARGET
)
{
DWORD
mask
=
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
];
glColorMask
(
mask
&
WINED3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
...
...
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