projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c45810
)
tnl: set FOGC result to (f,0,0,1)
author
Brian Paul
<brianp@vmware.com>
Thu, 7 Jan 2010 00:42:53 +0000
(17:42 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 7 Jan 2010 00:43:56 +0000
(17:43 -0700)
Fixed FDO bug 23397.
src/mesa/tnl/t_vb_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vb_program.c
b/src/mesa/tnl/t_vb_program.c
index e69f7d5766466908f93e89200d97bd7f8939989c..a9dae7d2e7ae6a1bdcdadb57f9ed4a2cfbb247a7 100644
(file)
--- a/
src/mesa/tnl/t_vb_program.c
+++ b/
src/mesa/tnl/t_vb_program.c
@@
-390,6
+390,13
@@
run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
#endif
COPY_4V(store->results[attr].data[i], machine.Outputs[attr]);
}
+
+ /* FOGC is a special case. Fragment shader expects (f,0,0,1) */
+ if (program->Base.OutputsWritten & BITFIELD64_BIT(VERT_RESULT_FOGC)) {
+ store->results[VERT_RESULT_FOGC].data[i][1] = 0.0;
+ store->results[VERT_RESULT_FOGC].data[i][2] = 0.0;
+ store->results[VERT_RESULT_FOGC].data[i][3] = 1.0;
+ }
#ifdef NAN_CHECK
ASSERT(machine.Outputs[0][3] != 0.0F);
#endif