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
5f79e808
Commit
5f79e808
authored
Oct 24, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add D3DZBUFFERTYPE to the WINED3D namespace.
parent
10cbffb3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
device.c
dlls/wined3d/device.c
+5
-5
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
surface.c
dlls/wined3d/surface.c
+2
-2
wined3d_types.h
include/wine/wined3d_types.h
+8
-0
No files found.
dlls/wined3d/device.c
View file @
5f79e808
...
...
@@ -3452,22 +3452,22 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
break
;
case
WINED3DRS_ZENABLE
:
switch
((
D3DZBUFFERTYPE
)
Value
)
{
case
D3DZB_FALSE
:
switch
((
WINE
D3DZBUFFERTYPE
)
Value
)
{
case
WINE
D3DZB_FALSE
:
glDisable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glDisable GL_DEPTH_TEST"
);
break
;
case
D3DZB_TRUE
:
case
WINE
D3DZB_TRUE
:
glEnable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glEnable GL_DEPTH_TEST"
);
break
;
case
D3DZB_USEW
:
case
WINE
D3DZB_USEW
:
glEnable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glEnable GL_DEPTH_TEST"
);
FIXME
(
"W buffer is not well handled
\n
"
);
break
;
default:
FIXME
(
"Unrecognized D3DZBUFFERTYPE value %d
\n
"
,
Value
);
FIXME
(
"Unrecognized
WINE
D3DZBUFFERTYPE value %d
\n
"
,
Value
);
}
break
;
...
...
dlls/wined3d/stateblock.c
View file @
5f79e808
...
...
@@ -839,9 +839,9 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
TRACE
(
"Render states
\n
"
);
/* Render states: */
if
(
ThisDevice
->
depthStencilBuffer
!=
NULL
)
{
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZENABLE
,
D3DZB_TRUE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZENABLE
,
WINE
D3DZB_TRUE
);
}
else
{
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZENABLE
,
D3DZB_FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZENABLE
,
WINE
D3DZB_FALSE
);
}
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_FILLMODE
,
D3DFILL_SOLID
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SHADEMODE
,
D3DSHADE_GOURAUD
);
...
...
dlls/wined3d/surface.c
View file @
5f79e808
...
...
@@ -1224,8 +1224,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
glDrawBuffer
(
GL_BACK
);
vcheckGLcall
(
"glDrawBuffer"
);
}
if
(
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_ZENABLE
]
==
D3DZB_TRUE
||
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_ZENABLE
]
==
D3DZB_USEW
)
glEnable
(
GL_DEPTH_TEST
);
if
(
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_ZENABLE
]
==
WINE
D3DZB_TRUE
||
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_ZENABLE
]
==
WINE
D3DZB_USEW
)
glEnable
(
GL_DEPTH_TEST
);
if
(
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_ALPHABLENDENABLE
])
glEnable
(
GL_BLEND
);
if
(
myDevice
->
stateBlock
->
renderState
[
WINED3DRS_FOGENABLE
])
glEnable
(
GL_FOG
);
...
...
include/wine/wined3d_types.h
View file @
5f79e808
...
...
@@ -470,6 +470,14 @@ typedef enum _WINED3DVERTEXBLENDFLAGS {
WINED3DVBF_0WEIGHTS
=
256
}
WINED3DVERTEXBLENDFLAGS
;
typedef
enum
_WINED3DZBUFFERTYPE
{
WINED3DZB_FALSE
=
0
,
WINED3DZB_TRUE
=
1
,
WINED3DZB_USEW
=
2
,
WINED3DZB_FORCE_DWORD
=
0x7fffffff
}
WINED3DZBUFFERTYPE
;
typedef
struct
_WINED3DDISPLAYMODE
{
UINT
Width
;
UINT
Height
;
...
...
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