summaryrefslogtreecommitdiffstats
path: root/progs/fp/tri-rcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/tri-rcp.c')
-rw-r--r--progs/fp/tri-rcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/fp/tri-rcp.c b/progs/fp/tri-rcp.c
index 41a0033566f..1698f37f365 100644
--- a/progs/fp/tri-rcp.c
+++ b/progs/fp/tri-rcp.c
@@ -40,7 +40,8 @@ static void Init( void )
static const char *modulate2D =
"!!ARBfp1.0\n"
"TEMP R0;\n"
- "RCP result.color, fragment.color.x; \n"
+ "ADD R0, fragment.color.x, fragment.color.x; \n"
+ "RCP result.color, R0.x; \n"
"END"
;
GLuint modulateProg;