summaryrefslogtreecommitdiffstats
path: root/progs/glsl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-01-08 22:10:52 -0800
committerVinson Lee <[email protected]>2010-01-08 22:10:52 -0800
commit223c8482ca16d3ed31266ea8cc63b816aece6a81 (patch)
tree32a9dbbf7b8ee7d518c3f574ce608f115f4d5a56 /progs/glsl
parent3b82de92a0f3a1a810ae1521d2f72795f9d65157 (diff)
progs/glsl: Silence uninitialized variable warning.
Diffstat (limited to 'progs/glsl')
-rw-r--r--progs/glsl/convolutions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/glsl/convolutions.c b/progs/glsl/convolutions.c
index 350e61bbdc5..fdfaf568a25 100644
--- a/progs/glsl/convolutions.c
+++ b/progs/glsl/convolutions.c
@@ -182,7 +182,7 @@ static void fillConvolution(GLint *k,
static void setupConvolution()
{
GLint *kernel = (GLint*)malloc(sizeof(GLint) * 9);
- GLfloat scale;
+ GLfloat scale = 0.0;
GLfloat *vecKer = (GLfloat*)malloc(sizeof(GLfloat) * 9 * 4);
GLuint loc;
GLuint i;