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
e5bad779
Commit
e5bad779
authored
Mar 01, 2006
by
Vitaly Budovski
Committed by
Alexandre Julliard
Mar 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implemented WINED3DRS_DEPTHBIAS.
parent
196eaa67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
device.c
dlls/wined3d/device.c
+17
-0
No files found.
dlls/wined3d/device.c
View file @
e5bad779
...
...
@@ -3866,7 +3866,24 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
case
WINED3DRS_COLORWRITEENABLE3
:
case
WINED3DRS_BLENDFACTOR
:
case
WINED3DRS_SRGBWRITEENABLE
:
{
FIXME
(
"(%p)->(%d,%ld) not handled yet
\n
"
,
This
,
State
,
Value
);
break
;
}
case
WINED3DRS_DEPTHBIAS
:
{
if
(
Value
)
{
tmpvalue
.
d
=
Value
;
glEnable
(
GL_POLYGON_OFFSET_FILL
);
checkGLcall
(
"glEnable(GL_POLYGON_OFFSET_FILL)"
);
glPolygonOffset
(
*
((
float
*
)
&
This
->
stateBlock
->
renderState
[
WINED3DRS_SLOPESCALEDEPTHBIAS
]),
tmpvalue
.
f
);
checkGLcall
(
"glPolygonOffset(...)"
);
}
else
{
glDisable
(
GL_POLYGON_OFFSET_FILL
);
checkGLcall
(
"glDisable(GL_POLYGON_OFFSET_FILL)"
);
}
break
;
}
case
WINED3DRS_WRAP8
:
case
WINED3DRS_WRAP9
:
case
WINED3DRS_WRAP10
:
...
...
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