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
406cfefc
Commit
406cfefc
authored
Mar 11, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Initialize WINED3DTA_TEMP.
parent
2702f28e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
406cfefc
...
...
@@ -6298,6 +6298,9 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, con
if
(
lowest_disabled_stage
<
7
&&
settings
->
emul_clipplanes
)
shader_addline
(
&
buffer
,
"KIL fragment.texcoord[7];
\n
"
);
if
(
tempreg_used
||
settings
->
sRGB_write
)
shader_addline
(
&
buffer
,
"MOV tempreg, 0.0;
\n
"
);
/* Generate texture sampling instructions) */
for
(
stage
=
0
;
stage
<
MAX_TEXTURES
&&
settings
->
op
[
stage
].
cop
!=
WINED3D_TOP_DISABLE
;
++
stage
)
{
...
...
dlls/wined3d/glsl_shader.c
View file @
406cfefc
...
...
@@ -5413,7 +5413,7 @@ static GLuint shader_glsl_generate_ffp_fragment_shader(struct wined3d_shader_buf
shader_addline
(
buffer
,
"vec4 tmp0, tmp1;
\n
"
);
shader_addline
(
buffer
,
"vec4 ret;
\n
"
);
if
(
tempreg_used
||
settings
->
sRGB_write
)
shader_addline
(
buffer
,
"vec4 temp_reg;
\n
"
);
shader_addline
(
buffer
,
"vec4 temp_reg
= vec4(0.0)
;
\n
"
);
shader_addline
(
buffer
,
"vec4 arg0, arg1, arg2;
\n
"
);
for
(
stage
=
0
;
stage
<
MAX_TEXTURES
;
++
stage
)
...
...
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