summaryrefslogtreecommitdiff
path: root/progs/fpglsl
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2010-03-10 15:42:26 -0500
committerZack Rusin <zack@kde.org>2010-03-10 15:42:26 -0500
commit1ad0a0fd8fb5314e33c1b4f82c9e487c05f80fb8 (patch)
tree234aa7b8b3e9f146cb267c61752811174d536f26 /progs/fpglsl
parent5f80dad7fd03ca811f2b0561269be0180970dbf8 (diff)
fpglsl: set an integer uniform required by the loop example
Diffstat (limited to 'progs/fpglsl')
-rw-r--r--progs/fpglsl/fp-tri.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/fpglsl/fp-tri.c b/progs/fpglsl/fp-tri.c
index c9b08fbbad..8af09845dd 100644
--- a/progs/fpglsl/fp-tri.c
+++ b/progs/fpglsl/fp-tri.c
@@ -129,6 +129,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");
GLint loc4f = glGetUniformLocationARB(program, "KernelValue4f");