From 1ad0a0fd8fb5314e33c1b4f82c9e487c05f80fb8 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 10 Mar 2010 15:42:26 -0500 Subject: fpglsl: set an integer uniform required by the loop example --- progs/fpglsl/fp-tri.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'progs/fpglsl/fp-tri.c') diff --git a/progs/fpglsl/fp-tri.c b/progs/fpglsl/fp-tri.c index c9b08fbbad7..8af09845dd8 100644 --- a/progs/fpglsl/fp-tri.c +++ b/progs/fpglsl/fp-tri.c @@ -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"); -- cgit v1.2.3