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
e53c2a9c
Commit
e53c2a9c
authored
Dec 10, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move wined3drs_fogdensity to the state table.
parent
af935a24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
device.c
dlls/wined3d/device.c
+1
-8
state.c
dlls/wined3d/state.c
+11
-1
No files found.
dlls/wined3d/device.c
View file @
e53c2a9c
...
...
@@ -3380,15 +3380,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_FOGEND
:
case
WINED3DRS_RANGEFOGENABLE
:
case
WINED3DRS_FOGCOLOR
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_FOGDENSITY
:
{
tmpvalue
.
d
=
Value
;
glFogfv
(
GL_FOG_DENSITY
,
&
tmpvalue
.
f
);
checkGLcall
(
"glFogf(GL_FOG_DENSITY, (float) Value)"
);
}
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_VERTEXBLEND
:
...
...
dlls/wined3d/state.c
View file @
e53c2a9c
...
...
@@ -800,6 +800,16 @@ static void state_fogcolor(DWORD state, IWineD3DStateBlockImpl *stateblock) {
checkGLcall
(
"glFog GL_FOG_COLOR"
);
}
static
void
state_fogdensity
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_FOGDENSITY
];
glFogfv
(
GL_FOG_DENSITY
,
&
tmpvalue
.
f
);
checkGLcall
(
"glFogf(GL_FOG_DENSITY, (float) Value)"
);
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -841,7 +851,7 @@ const struct StateEntry StateTable[] =
{
/* 35, WINED3DRS_FOGTABLEMODE */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_fog
},
{
/* 36, WINED3DRS_FOGSTART */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_fog
},
{
/* 37, WINED3DRS_FOGEND */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_fog
},
{
/* 38, WINED3DRS_FOGDENSITY */
STATE_RENDER
(
WINED3DRS_FOGDENSITY
),
state_
unknown
},
{
/* 38, WINED3DRS_FOGDENSITY */
STATE_RENDER
(
WINED3DRS_FOGDENSITY
),
state_
fogdensity
},
{
/* 39, WINED3DRS_STIPPLEENABLE */
STATE_RENDER
(
WINED3DRS_STIPPLEENABLE
),
state_unknown
},
{
/* 40, WINED3DRS_EDGEANTIALIAS */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
},
{
/* 41, WINED3DRS_COLORKEYENABLE */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_alpha
},
...
...
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