summaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
authorAndre Maasikas <[email protected]>2009-12-08 10:16:14 +0200
committerAndre Maasikas <[email protected]>2009-12-08 10:16:14 +0200
commit0d4a05445c6b47b93269a3829afbe509ffec4817 (patch)
tree20bf88dcabe25cea87e1e084420111875f17ad72 /progs/tests
parentba167f812c44c4bb8c8f844c3d5fbff60bfc93eb (diff)
parent369669ff9a7ff7636cadef8e2b13f2f28face98f (diff)
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/prog_parameter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/tests/prog_parameter.c b/progs/tests/prog_parameter.c
index 0241f3a2496..2de7e2994af 100644
--- a/progs/tests/prog_parameter.c
+++ b/progs/tests/prog_parameter.c
@@ -192,6 +192,7 @@ static void Init( void )
GLfloat * params;
GLint max_program_env_parameters;
GLint max_program_local_parameters;
+ int i;
printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));
@@ -238,6 +239,10 @@ static void Init( void )
params = malloc(max_program_env_parameters * 4 * sizeof(GLfloat));
+ for (i = 0; i < max_program_env_parameters * 4; i++) {
+ params[i] = 0.0F;
+ }
+
pass &= set_parameter_batch(max_program_env_parameters, params, "Env",
program_env_parameter4fv,
program_env_parameters4fv,