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
703ec4cb
Commit
703ec4cb
authored
Sep 14, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the stencil mask for both faces.
parent
5a63b79a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
state.c
dlls/wined3d/state.c
+16
-2
No files found.
dlls/wined3d/state.c
View file @
703ec4cb
...
@@ -707,10 +707,24 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
...
@@ -707,10 +707,24 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
}
}
static
void
state_stencilwrite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_stencilwrite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
DWORD
mask
;
if
(
stateblock
->
wineD3DDevice
->
stencilBufferTarget
)
{
if
(
stateblock
->
wineD3DDevice
->
stencilBufferTarget
)
{
glStencilMask
(
stateblock
->
renderState
[
WINED3DRS_STENCILWRITEMASK
]);
mask
=
stateblock
->
renderState
[
WINED3DRS_STENCILWRITEMASK
];
}
else
{
mask
=
0
;
}
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_BACK
));
checkGLcall
(
"glActiveStencilFaceEXT(GL_BACK)"
);
glStencilMask
(
mask
);
checkGLcall
(
"glStencilMask"
);
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_FRONT
));
checkGLcall
(
"glActiveStencilFaceEXT(GL_FRONT)"
);
glStencilMask
(
mask
);
}
else
{
}
else
{
glStencilMask
(
0
);
glStencilMask
(
mask
);
}
}
checkGLcall
(
"glStencilMask"
);
checkGLcall
(
"glStencilMask"
);
}
}
...
...
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