From c75270a9fcb0b49bae660b46a55734d0ac4e1bad Mon Sep 17 00:00:00 2001 From: frohlich Date: Thu, 15 Jun 2006 06:14:46 +0000 Subject: [PATCH] Use function argument in va_start instead of local variable. --- simgear/screen/shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/screen/shader.cpp b/simgear/screen/shader.cpp index 2c2f8958..e307d995 100644 --- a/simgear/screen/shader.cpp +++ b/simgear/screen/shader.cpp @@ -483,7 +483,7 @@ void Shader::bind(const float *v,...) { } const float *value = v; va_list args; - va_start(args,value); + va_start(args,v); for(int i = 0; i < (int)parameters.size(); i++) { if( vertex_target ) { glProgramLocalParameter4fvPtr( vertex_target, parameters[i].location, value); @@ -549,7 +549,7 @@ void Shader::setParameter(const char *name,const float *value) { void Shader::setParameters(const float *v,...) { const float *value = v; va_list args; - va_start(args,value); + va_start(args,v); for(int i = 0; i < (int)parameters.size(); i++) { if( vertex_target ) { glProgramLocalParameter4fvPtr( vertex_target, parameters[i].location, value); -- 2.39.5