projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f80dad
)
fpglsl: set an integer uniform required by the loop example
author
Zack Rusin
<zack@kde.org>
Wed, 10 Mar 2010 20:42:26 +0000
(15:42 -0500)
committer
Zack Rusin
<zack@kde.org>
Wed, 10 Mar 2010 20:42:26 +0000
(15:42 -0500)
progs/fpglsl/fp-tri.c
patch
|
blob
|
history
diff --git
a/progs/fpglsl/fp-tri.c
b/progs/fpglsl/fp-tri.c
index c9b08fbbad72f1921d49e1043d7d47e0b3f1d3fb..8af09845dd86b676e231ad61d84dd0cb5594ecd8 100644
(file)
--- 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");