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
a39e2b51
Commit
a39e2b51
authored
Aug 20, 2006
by
Chris Robinson
Committed by
Alexandre Julliard
Aug 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't pass bad values to glAlphaFunc and glDepthFunc.
parent
4c88bb84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
device.c
dlls/wined3d/device.c
+12
-8
No files found.
dlls/wined3d/device.c
View file @
a39e2b51
...
@@ -3560,7 +3560,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
...
@@ -3560,7 +3560,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
case
WINED3DRS_ZFUNC
:
case
WINED3DRS_ZFUNC
:
{
{
int
glParm
=
GL_LESS
;
int
glParm
=
0
;
switch
((
D3DCMPFUNC
)
Value
)
{
switch
((
D3DCMPFUNC
)
Value
)
{
case
D3DCMP_NEVER
:
glParm
=
GL_NEVER
;
break
;
case
D3DCMP_NEVER
:
glParm
=
GL_NEVER
;
break
;
...
@@ -3574,8 +3574,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
...
@@ -3574,8 +3574,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
default:
default:
FIXME
(
"Unrecognized/Unhandled D3DCMPFUNC value %ld
\n
"
,
Value
);
FIXME
(
"Unrecognized/Unhandled D3DCMPFUNC value %ld
\n
"
,
Value
);
}
}
glDepthFunc
(
glParm
);
if
(
glParm
)
{
checkGLcall
(
"glDepthFunc"
);
glDepthFunc
(
glParm
);
checkGLcall
(
"glDepthFunc"
);
}
}
}
break
;
break
;
...
@@ -3644,8 +3646,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
...
@@ -3644,8 +3646,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
case
WINED3DRS_ALPHAREF
:
case
WINED3DRS_ALPHAREF
:
case
WINED3DRS_COLORKEYENABLE
:
case
WINED3DRS_COLORKEYENABLE
:
{
{
int
glParm
=
0
.
0
;
int
glParm
=
0
;
float
ref
=
GL_LESS
;
float
ref
;
BOOL
enable_ckey
=
FALSE
;
BOOL
enable_ckey
=
FALSE
;
IWineD3DSurfaceImpl
*
surf
;
IWineD3DSurfaceImpl
*
surf
;
...
@@ -3688,9 +3690,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
...
@@ -3688,9 +3690,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
FIXME
(
"Unrecognized/Unhandled D3DCMPFUNC value %ld
\n
"
,
This
->
stateBlock
->
renderState
[
WINED3DRS_ALPHAFUNC
]);
FIXME
(
"Unrecognized/Unhandled D3DCMPFUNC value %ld
\n
"
,
This
->
stateBlock
->
renderState
[
WINED3DRS_ALPHAFUNC
]);
}
}
}
}
This
->
alphafunc
=
glParm
;
if
(
glParm
)
{
glAlphaFunc
(
glParm
,
ref
);
This
->
alphafunc
=
glParm
;
checkGLcall
(
"glAlphaFunc"
);
glAlphaFunc
(
glParm
,
ref
);
checkGLcall
(
"glAlphaFunc"
);
}
}
}
break
;
break
;
...
...
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