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
84cd1925
Commit
84cd1925
authored
Jun 04, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Opengl 1.4 added stencil wrap support as per directx (also in the
GL_EXT_stencil_wrap extension).
parent
3cae8cfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
directx.c
dlls/d3d8/directx.c
+10
-11
utils.c
dlls/d3d8/utils.c
+9
-1
No files found.
dlls/d3d8/directx.c
View file @
84cd1925
...
...
@@ -391,8 +391,6 @@ HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps (LPDIRECT3D8 iface,
ICOM_THIS
(
IDirect3D8Impl
,
iface
);
TRACE
(
"(%p)->(Adptr:%d, DevType: %x, pCaps: %p)
\n
"
,
This
,
Adapter
,
DeviceType
,
pCaps
);
/* NOTE: Most of the values here are complete garbage for now */
pCaps
->
DeviceType
=
(
DeviceType
==
D3DDEVTYPE_HAL
)
?
D3DDEVTYPE_HAL
:
D3DDEVTYPE_REF
;
/* Not quite true, but use h/w supported by opengl I suppose */
pCaps
->
AdapterOrdinal
=
Adapter
;
...
...
@@ -508,15 +506,16 @@ HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps (LPDIRECT3D8 iface,
pCaps
->
ExtentsAdjust
=
0
;
pCaps
->
StencilCaps
=
D3DSTENCILCAPS_DECRSAT
|
D3DSTENCILCAPS_INCRSAT
|
D3DSTENCILCAPS_INVERT
|
D3DSTENCILCAPS_KEEP
|
D3DSTENCILCAPS_REPLACE
|
D3DSTENCILCAPS_ZERO
;
/* FIXME: Add
D3DSTENCILCAPS_DECR
D3DSTENCILCAPS_INCR */
pCaps
->
StencilCaps
=
D3DSTENCILCAPS_DECRSAT
|
D3DSTENCILCAPS_INCRSAT
|
D3DSTENCILCAPS_INVERT
|
D3DSTENCILCAPS_KEEP
|
D3DSTENCILCAPS_REPLACE
|
D3DSTENCILCAPS_ZERO
;
#if defined(GL_VERSION_1_4) || defined(GL_EXT_stencil_wrap)
pCaps
->
StencilCaps
|=
D3DSTENCILCAPS_DECR
|
D3DSTENCILCAPS_INCR
;
#endif
pCaps
->
FVFCaps
=
D3DFVFCAPS_PSIZE
|
0x80000
;
...
...
dlls/d3d8/utils.c
View file @
84cd1925
...
...
@@ -407,11 +407,19 @@ GLenum StencilOp(DWORD op) {
case
D3DSTENCILOP_REPLACE
:
return
GL_REPLACE
;
case
D3DSTENCILOP_INCRSAT
:
return
GL_INCR
;
case
D3DSTENCILOP_DECRSAT
:
return
GL_DECR
;
case
D3DSTENCILOP_INVERT
:
return
GL_INVERT
;
case
D3DSTENCILOP_INVERT
:
return
GL_INVERT
;
#if defined(GL_VERSION_1_4)
case
D3DSTENCILOP_INCR
:
return
GL_INCR_WRAP
;
case
D3DSTENCILOP_DECR
:
return
GL_DECR_WRAP
;
#elif defined(GL_EXT_stencil_wrap)
case
D3DSTENCILOP_INCR
:
return
GL_INCR_WRAP_EXT
;
case
D3DSTENCILOP_DECR
:
return
GL_DECR_WRAP_EXT
;
#else
case
D3DSTENCILOP_INCR
:
FIXME
(
"Unsupported stencil op D3DSTENCILOP_INCR
\n
"
);
return
GL_INCR
;
/* Fixme - needs to support wrap */
case
D3DSTENCILOP_DECR
:
FIXME
(
"Unsupported stencil op D3DSTENCILOP_DECR
\n
"
);
return
GL_DECR
;
/* Fixme - needs to support wrap */
#endif
default:
FIXME
(
"Invalid stencil op %ld
\n
"
,
op
);
return
GL_ALWAYS
;
...
...
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