diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2016-02-04 10:05:43 -0800 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2016-05-23 15:30:12 -0700 |
commit | 6b0c7a5652fc4c21c039132e002112d09a71d870 (patch) | |
tree | 289066a15b31bee75488038869352d8d7558a685 | |
parent | 28cc9be57b35c8349542a0d273c2342ea3267e38 (diff) |
Add texture min/mag filters
2D textures worked fine without defining these filters but
3D textures don't work.
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
-rw-r--r-- | tests/util/piglit_ktx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/util/piglit_ktx.c b/tests/util/piglit_ktx.c index b96cb2623..d47a2ed31 100644 --- a/tests/util/piglit_ktx.c +++ b/tests/util/piglit_ktx.c @@ -630,6 +630,9 @@ piglit_ktx_load_noncubeface(struct piglit_ktx *self, const struct piglit_ktx_image *img = &self->images[image]; int level = image; + glTexParameteri(info->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexParameteri(info->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + switch (info->target) { case GL_TEXTURE_1D: if (piglit_is_gles()) |