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
710b9a76
Commit
710b9a76
authored
Jul 05, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the range fog support test to the template.
parent
df4dcc34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
state.c
dlls/wined3d/state.c
+12
-11
No files found.
dlls/wined3d/state.c
View file @
710b9a76
...
...
@@ -1186,19 +1186,19 @@ static void state_fog(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCo
}
}
static
void
state_rangefog_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_RANGEFOGENABLE
])
{
WARN
(
"Range fog enabled, but not supported by this opengl implementation
\n
"
);
}
}
static
void
state_rangefog
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_RANGEFOGENABLE
])
{
if
(
GL_SUPPORT
(
NV_FOG_DISTANCE
))
{
glFogi
(
GL_FOG_DISTANCE_MODE_NV
,
GL_EYE_RADIAL_NV
);
checkGLcall
(
"glFogi(GL_FOG_DISTANCE_MODE_NV, GL_EYE_RADIAL_NV)"
);
}
else
{
WARN
(
"Range fog enabled, but not supported by this opengl implementation
\n
"
);
}
glFogi
(
GL_FOG_DISTANCE_MODE_NV
,
GL_EYE_RADIAL_NV
);
checkGLcall
(
"glFogi(GL_FOG_DISTANCE_MODE_NV, GL_EYE_RADIAL_NV)"
);
}
else
{
if
(
GL_SUPPORT
(
NV_FOG_DISTANCE
))
{
glFogi
(
GL_FOG_DISTANCE_MODE_NV
,
GL_EYE_PLANE_ABSOLUTE_NV
);
checkGLcall
(
"glFogi(GL_FOG_DISTANCE_MODE_NV, GL_EYE_PLANE_ABSOLUTE_NV)"
);
}
glFogi
(
GL_FOG_DISTANCE_MODE_NV
,
GL_EYE_PLANE_ABSOLUTE_NV
);
checkGLcall
(
"glFogi(GL_FOG_DISTANCE_MODE_NV, GL_EYE_PLANE_ABSOLUTE_NV)"
);
}
}
...
...
@@ -4286,7 +4286,8 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_FOGVERTEXMODE
),
{
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_fog
},
0
},
{
STATE_RENDER
(
WINED3DRS_FOGCOLOR
),
{
STATE_RENDER
(
WINED3DRS_FOGCOLOR
),
state_fogcolor
},
0
},
{
STATE_RENDER
(
WINED3DRS_FOGDENSITY
),
{
STATE_RENDER
(
WINED3DRS_FOGDENSITY
),
state_fogdensity
},
0
},
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
state_rangefog
},
0
},
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
state_rangefog
},
NV_FOG_DISTANCE
},
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
{
STATE_RENDER
(
WINED3DRS_RANGEFOGENABLE
),
state_rangefog_w
},
0
},
{
STATE_RENDER
(
WINED3DRS_CLIPPING
),
{
STATE_RENDER
(
WINED3DRS_CLIPPING
),
state_clipping
},
0
},
{
STATE_RENDER
(
WINED3DRS_CLIPPLANEENABLE
),
{
STATE_RENDER
(
WINED3DRS_CLIPPING
),
state_clipping
},
0
},
{
STATE_RENDER
(
WINED3DRS_LIGHTING
),
{
STATE_RENDER
(
WINED3DRS_LIGHTING
),
state_lighting
},
0
},
...
...
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