From 9f6814fbd8153f756a33b5bb39a39867654c0f44 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 28 Jan 2013 19:46:42 +0000 Subject: [PATCH] gpu: fix PS3 compilation caused by wrong function names. --- src/gpu/shader.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/gpu/shader.cpp b/src/gpu/shader.cpp index ca25c434..520517cf 100644 --- a/src/gpu/shader.cpp +++ b/src/gpu/shader.cpp @@ -580,11 +580,11 @@ void Shader::SetUniform(ShaderUniform const &uni, Array const &v) glUniform1fv(uni.frag, v.Count(), &v[0]); #else if (uni.frag) - cgGLSetParameterArray1fv((CGparameter)uni.frag, - 0, v.Count(), &v[0]); + cgGLSetParameterArray1f((CGparameter)uni.frag, + 0, v.Count(), &v[0]); if (uni.vert) - cgGLSetParameterArray1fv((CGparameter)uni.vert, - 0, v.Count(), &v[0]); + cgGLSetParameterArray1f((CGparameter)uni.vert, + 0, v.Count(), &v[0]); #endif } @@ -603,11 +603,11 @@ void Shader::SetUniform(ShaderUniform const &uni, Array const &v) glUniform2fv(uni.frag, v.Count(), &v[0][0]); #else if (uni.frag) - cgGLSetParameterArray2fv((CGparameter)uni.frag, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray2f((CGparameter)uni.frag, + 0, v.Count(), &v[0][0]); if (uni.vert) - cgGLSetParameterArray2fv((CGparameter)uni.vert, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray2f((CGparameter)uni.vert, + 0, v.Count(), &v[0][0]); #endif } @@ -626,11 +626,11 @@ void Shader::SetUniform(ShaderUniform const &uni, Array const &v) glUniform3fv(uni.frag, v.Count(), &v[0][0]); #else if (uni.frag) - cgGLSetParameterArray3fv((CGparameter)uni.frag, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray3f((CGparameter)uni.frag, + 0, v.Count(), &v[0][0]); if (uni.vert) - cgGLSetParameterArray3fv((CGparameter)uni.vert, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray3f((CGparameter)uni.vert, + 0, v.Count(), &v[0][0]); #endif } @@ -647,11 +647,11 @@ void Shader::SetUniform(ShaderUniform const &uni, Array const &v) glUniform4fv(uni.frag, v.Count(), &v[0][0]); #else if (uni.frag) - cgGLSetParameterArray4fv((CGparameter)uni.frag, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray4f((CGparameter)uni.frag, + 0, v.Count(), &v[0][0]); if (uni.vert) - cgGLSetParameterArray4fv((CGparameter)uni.vert, - 0, v.Count(), &v[0][0]); + cgGLSetParameterArray4f((CGparameter)uni.vert, + 0, v.Count(), &v[0][0]); #endif }