From: frohlich Date: Thu, 15 Jun 2006 06:14:46 +0000 (+0000) Subject: Use function argument in va_start instead of local variable. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c75270a9fcb0b49bae660b46a55734d0ac4e1bad;p=simgear.git Use function argument in va_start instead of local variable. --- 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);