[Piglit] [PATCH 1/2] arb_color_buffer_float-render: fix fog with vp

Vadim Girlin vadimgirlin at gmail.com
Mon Jul 11 21:13:21 PDT 2011


When using vertex program & fog, vp should output fogcoord.

Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
 tests/spec/arb_color_buffer_float/render.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/spec/arb_color_buffer_float/render.c b/tests/spec/arb_color_buffer_float/render.c
index 9ad26a1..59dac2a 100644
--- a/tests/spec/arb_color_buffer_float/render.c
+++ b/tests/spec/arb_color_buffer_float/render.c
@@ -48,10 +48,12 @@ GLenum blend_dst[] = { 0, GL_ZERO, GL_ZERO, GL_ONE };
 const char *vp_strings[] = {
 	"!!ARBvp1.0\n"
 	"MOV result.position, vertex.position;\n"
+	"MOV result.fogcoord, 0;\n"
 	"MOV result.color, {7, -2.75, -0.25, 0.75};\n" "END\n",
 
 	"!!ARBvp1.0\n"
 	"MOV result.position, vertex.position;\n"
+	"MOV result.fogcoord, 0;\n"
 	"MOV result.texcoord[0], {7, -2.75, -0.25, 0.75};\n" "END\n"
 };
 
-- 
1.7.6



More information about the Piglit mailing list