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
1f6f9467
Commit
1f6f9467
authored
Jul 11, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only use state contained in the ffp_frag_settings structure in gen_arbfp_ffp_shader().
Note that the actual check looks off by one too.
parent
4ebbd0e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
1f6f9467
...
...
@@ -5960,6 +5960,7 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, str
BOOL
tex_read
[
MAX_TEXTURES
]
=
{
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
};
BOOL
bump_used
[
MAX_TEXTURES
]
=
{
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
};
BOOL
luminance_used
[
MAX_TEXTURES
]
=
{
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
,
FALSE
};
UINT
lowest_disabled_stage
;
const
char
*
textype
;
const
char
*
instr
,
*
sat
;
char
colorcor_dst
[
8
];
...
...
@@ -6018,6 +6019,7 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, str
tfactor_used
=
TRUE
;
}
}
lowest_disabled_stage
=
stage
;
/* Shader header */
if
(
!
shader_buffer_init
(
&
buffer
))
...
...
@@ -6063,7 +6065,7 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, str
srgb_sub_high
,
0
.
0
,
0
.
0
,
0
.
0
);
}
if
(
ffp_clip_emul
(
&
stateblock
->
state
)
&&
settings
->
emul_clipplanes
)
if
(
lowest_disabled_stage
<
7
&&
settings
->
emul_clipplanes
)
shader_addline
(
&
buffer
,
"KIL fragment.texcoord[7];
\n
"
);
/* Generate texture sampling instructions) */
...
...
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