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
06108781
Commit
06108781
authored
Dec 14, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the apply_pshader_fog state handler.
The fog doesn't depend on pixel shaders any longer(but still vice versa), so we don't need this state any more.
parent
2dd18635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
state.c
dlls/wined3d/state.c
+0
-17
No files found.
dlls/wined3d/state.c
View file @
06108781
...
...
@@ -3370,21 +3370,6 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
}
}
static
void
apply_pshader_fog
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
use_ps
(
stateblock
))
{
if
(
!
context
->
last_was_pshader
)
{
state_fog
(
state
,
stateblock
,
context
);
}
context
->
last_was_pshader
=
TRUE
;
}
else
{
if
(
context
->
last_was_pshader
)
{
state_fog
(
state
,
stateblock
,
context
);
}
context
->
last_was_pshader
=
FALSE
;
}
}
void
apply_pixelshader
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
BOOL
use_pshader
=
use_ps
(
stateblock
);
...
...
@@ -5208,8 +5193,6 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_arb
},
ARB_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_ext
},
EXT_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_w
},
0
},
/* pixel shaders need a different fog input */
{
STATE_PIXELSHADER
,
{
STATE_PIXELSHADER
,
apply_pshader_fog
},
0
},
/* Samplers for NP2 texture matrix adjustions. They are not needed if GL_ARB_texture_non_power_of_two is supported,
* so register a NULL state handler in that case to get the vertex part of sampler() skipped(VTF is handled in the misc states.
* otherwise, register sampler_texmatrix, which takes care of updating the texture matrix
...
...
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