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
145d5684
Commit
145d5684
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: Disable two sided stencil if it is supported, but not enabled.
parent
ad3fe856
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
state.c
dlls/wined3d/state.c
+14
-11
No files found.
dlls/wined3d/state.c
View file @
145d5684
...
@@ -694,18 +694,21 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
...
@@ -694,18 +694,21 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
renderstate_stencil_twosided
(
stateblock
,
GL_FRONT
,
func
,
ref
,
mask
,
stencilFail
,
depthFail
,
stencilPass
);
renderstate_stencil_twosided
(
stateblock
,
GL_FRONT
,
func
,
ref
,
mask
,
stencilFail
,
depthFail
,
stencilPass
);
renderstate_stencil_twosided
(
stateblock
,
GL_BACK
,
func_ccw
,
ref
,
mask
,
stencilFail_ccw
,
depthFail_ccw
,
stencilPass_ccw
);
renderstate_stencil_twosided
(
stateblock
,
GL_BACK
,
func_ccw
,
ref
,
mask
,
stencilFail_ccw
,
depthFail_ccw
,
stencilPass_ccw
);
}
else
{
}
else
if
(
onesided_enable
)
{
if
(
onesided_enable
)
{
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
glEnable
(
GL_STENCIL_TEST
);
glDisable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
checkGLcall
(
"glEnable GL_STENCIL_TEST"
);
checkGLcall
(
"glDisable(GL_STENCIL_TEST_TWO_SIDE_EXT)"
);
glStencilFunc
(
func
,
ref
,
mask
);
checkGLcall
(
"glStencilFunc(...)"
);
glStencilOp
(
stencilFail
,
depthFail
,
stencilPass
);
checkGLcall
(
"glStencilOp(...)"
);
}
else
{
glDisable
(
GL_STENCIL_TEST
);
checkGLcall
(
"glDisable GL_STENCIL_TEST"
);
}
}
glEnable
(
GL_STENCIL_TEST
);
checkGLcall
(
"glEnable GL_STENCIL_TEST"
);
glStencilFunc
(
func
,
ref
,
mask
);
checkGLcall
(
"glStencilFunc(...)"
);
glStencilOp
(
stencilFail
,
depthFail
,
stencilPass
);
checkGLcall
(
"glStencilOp(...)"
);
}
else
{
glDisable
(
GL_STENCIL_TEST
);
checkGLcall
(
"glDisable GL_STENCIL_TEST"
);
}
}
}
}
...
...
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