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
7528fc0d
Commit
7528fc0d
authored
Jun 09, 2006
by
Jan Zerebecki
Committed by
Alexandre Julliard
Jun 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix stencil related render states.
parent
cf8833c4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
device.c
dlls/wined3d/device.c
+0
-0
utils.c
dlls/wined3d/utils.c
+17
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
7528fc0d
This diff is collapsed.
Click to expand it.
dlls/wined3d/utils.c
View file @
7528fc0d
...
...
@@ -405,7 +405,23 @@ GLenum StencilOp(DWORD op) {
case
D3DSTENCILOP_INCR
:
return
GL_INCR_WRAP_EXT
;
case
D3DSTENCILOP_DECR
:
return
GL_DECR_WRAP_EXT
;
default:
FIXME
(
"Invalid stencil op %ld
\n
"
,
op
);
FIXME
(
"Unrecognized stencil op %ld
\n
"
,
op
);
return
GL_KEEP
;
}
}
GLenum
StencilFunc
(
DWORD
func
)
{
switch
((
D3DCMPFUNC
)
func
)
{
case
D3DCMP_NEVER
:
return
GL_NEVER
;
case
D3DCMP_LESS
:
return
GL_LESS
;
case
D3DCMP_EQUAL
:
return
GL_EQUAL
;
case
D3DCMP_LESSEQUAL
:
return
GL_LEQUAL
;
case
D3DCMP_GREATER
:
return
GL_GREATER
;
case
D3DCMP_NOTEQUAL
:
return
GL_NOTEQUAL
;
case
D3DCMP_GREATEREQUAL
:
return
GL_GEQUAL
;
case
D3DCMP_ALWAYS
:
return
GL_ALWAYS
;
default:
FIXME
(
"Unrecognized D3DCMPFUNC value %ld
\n
"
,
func
);
return
GL_ALWAYS
;
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
7528fc0d
...
...
@@ -483,7 +483,6 @@ typedef struct IWineD3DDeviceImpl
UINT
srcBlend
;
UINT
dstBlend
;
UINT
alphafunc
;
UINT
stencilfunc
;
BOOL
texture_shader_active
;
/* TODO: Confirm use is correct */
BOOL
last_was_notclipped
;
...
...
@@ -1166,6 +1165,7 @@ const char* debug_d3dpool(WINED3DPOOL pool);
/* Routines for GL <-> D3D values */
GLenum
StencilOp
(
DWORD
op
);
GLenum
StencilFunc
(
DWORD
func
);
void
set_tex_op
(
IWineD3DDevice
*
iface
,
BOOL
isAlpha
,
int
Stage
,
D3DTEXTUREOP
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
);
void
set_texture_matrix
(
const
float
*
smat
,
DWORD
flags
,
BOOL
calculatedCoords
);
...
...
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