[Piglit] [PATCH 2/5] Add texture min/mag filters
Anuj Phogat
anuj.phogat at gmail.com
Mon Mar 21 18:54:10 UTC 2016
2D textures worked fine without defining these filters but
3D textures don't work.
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
tests/util/piglit_ktx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/util/piglit_ktx.c b/tests/util/piglit_ktx.c
index b96cb26..d47a2ed 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())
--
2.5.0
More information about the Piglit
mailing list