From: Zack Rusin Date: Wed, 10 Mar 2010 20:42:26 +0000 (-0500) Subject: fpglsl: set an integer uniform required by the loop example X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ad0a0fd8fb5314e33c1b4f82c9e487c05f80fb8;p=mesa.git fpglsl: set an integer uniform required by the loop example --- 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");