fpglsl: set an integer uniform required by the loop example
authorZack Rusin <zack@kde.org>
Wed, 10 Mar 2010 20:42:26 +0000 (15:42 -0500)
committerZack Rusin <zack@kde.org>
Wed, 10 Mar 2010 20:42:26 +0000 (15:42 -0500)
progs/fpglsl/fp-tri.c

index c9b08fbbad72f1921d49e1043d7d47e0b3f1d3fb..8af09845dd86b676e231ad61d84dd0cb5594ecd8 100644 (file)
@@ -128,6 +128,11 @@ static void setup_uniforms()
 
    }
 
+   {
+      GLint loci = glGetUniformLocationARB(program, "KernelSizeInt");
+      if (loci >= 0)
+         glUniform1i(loci, 4);
+   }
    {
       GLint loc1f = glGetUniformLocationARB(program, "KernelValue1f");
       GLint loc2f = glGetUniformLocationARB(program, "KernelValue2f");