summaryrefslogtreecommitdiff
path: root/tests/texturing/compressedteximage.c
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2022-09-06 12:06:28 +0200
committerMarge Bot <emma+marge@anholt.net>2022-09-08 07:07:36 +0000
commitac475d594d4a0d8682f423e48755c7f033c21b07 (patch)
tree709b8667daece13e51af7ef92fb94fc1b59b6e3c /tests/texturing/compressedteximage.c
parent1fcd30f2585c04c90142a4d3b77ceaeb860591bb (diff)
compressedteximage: set mipfilter to nearest
This is a test for the glCompressedTexImage details, not for linear mipfilter precision. So let's just set the mipfilter to nearest so we don't get test-failures for the wrong reason. Reviewed-by: Eric Engestrom <eric@igalia.com> Tested-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/730>
Diffstat (limited to 'tests/texturing/compressedteximage.c')
-rw-r--r--tests/texturing/compressedteximage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/texturing/compressedteximage.c b/tests/texturing/compressedteximage.c
index 3a956f25f..47328634b 100644
--- a/tests/texturing/compressedteximage.c
+++ b/tests/texturing/compressedteximage.c
@@ -117,6 +117,7 @@ display_mipmaps(int x, int y)
int i;
glEnable(GL_TEXTURE_2D);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST);
/* Display all the mipmap levels */
for (i = SIZE; i > 0; i /= 2) {