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
4b10288b
Commit
4b10288b
authored
Feb 25, 2006
by
Vitaly Budovski
Committed by
Alexandre Julliard
Feb 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implemented WINED3DRS_SLOPESCALEDEPTHBIAS.
parent
c9a1134c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
device.c
dlls/wined3d/device.c
+14
-1
No files found.
dlls/wined3d/device.c
View file @
4b10288b
...
...
@@ -3674,6 +3674,20 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
}
break
;
}
case
WINED3DRS_SLOPESCALEDEPTHBIAS
:
{
if
(
Value
)
{
tmpvalue
.
d
=
Value
;
glEnable
(
GL_POLYGON_OFFSET_FILL
);
checkGLcall
(
"glEnable(GL_POLYGON_OFFSET_FILL)"
);
glPolygonOffset
(
tmpvalue
.
f
,
*
((
float
*
)
&
This
->
stateBlock
->
renderState
[
WINED3DRS_DEPTHBIAS
]));
checkGLcall
(
"glPolygonOffset(...)"
);
}
else
{
glDisable
(
GL_POLYGON_OFFSET_FILL
);
checkGLcall
(
"glDisable(GL_POLYGON_OFFSET_FILL)"
);
}
break
;
}
case
WINED3DRS_ANTIALIASEDLINEENABLE
:
{
if
(
Value
)
{
...
...
@@ -3698,7 +3712,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
case
WINED3DRS_NORMALORDER
:
/* Direct3D9 render states */
case
WINED3DRS_SCISSORTESTENABLE
:
case
WINED3DRS_SLOPESCALEDEPTHBIAS
:
case
WINED3DRS_MINTESSELLATIONLEVEL
:
case
WINED3DRS_MAXTESSELLATIONLEVEL
:
case
WINED3DRS_ADAPTIVETESS_X
:
...
...
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