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
271f56c9
Commit
271f56c9
authored
Sep 03, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Close a pshader on-off switching loophole.
parent
c36e0338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+7
-0
No files found.
dlls/wined3d/arb_program_shader.c
View file @
271f56c9
...
@@ -2912,6 +2912,13 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
...
@@ -2912,6 +2912,13 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
if
(
isStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_FOGENABLE
)))
{
if
(
isStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_FOGENABLE
)))
{
if
(
use_pshader
)
{
if
(
use_pshader
)
{
IWineD3DPixelShader_CompileShader
(
stateblock
->
pixelShader
);
IWineD3DPixelShader_CompileShader
(
stateblock
->
pixelShader
);
}
else
if
(
device
->
shader_backend
==
&
arb_program_shader_backend
&&
context
->
last_was_pshader
)
{
/* Reload fixed function constants since they collide with the pixel shader constants */
for
(
i
=
0
;
i
<
MAX_TEXTURES
;
i
++
)
{
set_bumpmat_arbfp
(
STATE_TEXTURESTAGE
(
i
,
WINED3DTSS_BUMPENVMAT00
),
stateblock
,
context
);
}
state_texfactor_arbfp
(
STATE_RENDER
(
WINED3DRS_TEXTUREFACTOR
),
stateblock
,
context
);
state_arb_specularenable
(
STATE_RENDER
(
WINED3DRS_SPECULARENABLE
),
stateblock
,
context
);
}
}
return
;
return
;
}
}
...
...
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