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
db7b684d
Commit
db7b684d
authored
Sep 06, 2006
by
Jan Zerebecki
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify setting the stencil renderstate.
parent
91bbec01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
device.c
dlls/wined3d/device.c
+0
-43
No files found.
dlls/wined3d/device.c
View file @
db7b684d
...
...
@@ -3335,49 +3335,6 @@ static void renderstate_stencil(IWineD3DDeviceImpl *This, D3DRENDERSTATETYPE Sta
if
(
This
->
stateBlock
->
set
.
renderState
[
WINED3DRS_CCW_STENCILPASS
]
)
stencilPass_ccw
=
StencilOp
(
This
->
stateBlock
->
renderState
[
WINED3DRS_CCW_STENCILPASS
]);
switch
(
State
)
{
case
WINED3DRS_STENCILENABLE
:
onesided_enable
=
Value
;
break
;
case
WINED3DRS_TWOSIDEDSTENCILMODE
:
twosided_enable
=
Value
;
break
;
case
WINED3DRS_STENCILFUNC
:
if
(
!
(
func
=
CompareFunc
(
Value
)
)
)
func
=
GL_ALWAYS
;
break
;
case
WINED3DRS_CCW_STENCILFUNC
:
if
(
!
(
func_ccw
=
CompareFunc
(
Value
)
)
)
func_ccw
=
GL_ALWAYS
;
break
;
case
WINED3DRS_STENCILREF
:
ref
=
Value
;
break
;
case
WINED3DRS_STENCILMASK
:
mask
=
Value
;
break
;
case
WINED3DRS_STENCILFAIL
:
stencilFail
=
StencilOp
(
Value
);
break
;
case
WINED3DRS_STENCILZFAIL
:
depthFail
=
StencilOp
(
Value
);
break
;
case
WINED3DRS_STENCILPASS
:
stencilPass
=
StencilOp
(
Value
);
break
;
case
WINED3DRS_CCW_STENCILFAIL
:
stencilFail_ccw
=
StencilOp
(
Value
);
break
;
case
WINED3DRS_CCW_STENCILZFAIL
:
depthFail_ccw
=
StencilOp
(
Value
);
break
;
case
WINED3DRS_CCW_STENCILPASS
:
stencilPass_ccw
=
StencilOp
(
Value
);
break
;
default
:
ERR
(
"This should not happen!"
);
}
TRACE
(
"(onesided %ld, twosided %ld, ref %x, mask %x, \
GL_FRONT: func: %x, fail %x, zfail %x, zpass %x \
GL_BACK: func: %x, fail %x, zfail %x, zpass %x )
\n
"
,
...
...
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