summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-03-05 16:16:47 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-03-05 16:16:47 +0100
commit00540149a38f6b98ef66c1f4b3652077597d1c99 (patch)
tree6b5d0605513aac427c16950816c7ac1da5d5a31f
parentc13eb67a4c79557e3fa3beaf8e239b38b3979d43 (diff)
downloadbicubic-00540149a38f6b98ef66c1f4b3652077597d1c99.tar.gz
bicubic-00540149a38f6b98ef66c1f4b3652077597d1c99.tar.bz2
Don't interpolate lookup texture values.
-rw-r--r--bicubic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bicubic.c b/bicubic.c
index a635ae3..b81de99 100644
--- a/bicubic.c
+++ b/bicubic.c
@@ -289,8 +289,8 @@ generateLookupTexture (CompScreen *s, GLenum format)
glTexImage1D (GL_TEXTURE_1D, 0, format, 128, 0, GL_RGBA,
GL_FLOAT, values);
- glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
- glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri (GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_REPEAT);