From 464c12cfc5d8b541c4892ac8737720fca349f9d0 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Thu, 21 Feb 2019 21:22:39 +0000 Subject: [PATCH] Disable mipmap filtering on the paletted texture sample --- samples/paletted/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/paletted/main.c b/samples/paletted/main.c index a4aa29f..534d99e 100644 --- a/samples/paletted/main.c +++ b/samples/paletted/main.c @@ -114,8 +114,8 @@ void LoadGLTextures() { glGenTextures(1, &texture[0]); glBindTexture(GL_TEXTURE_2D, texture[0]); // 2d texture (x and y size) - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); // scale linearly when image bigger than texture - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR); // scale linearly when image smalled than texture + glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER, GL_LINEAR); // scale linearly when image bigger than texture + glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER, GL_LINEAR); // scale linearly when image smalled than texture glColorTableEXT(GL_TEXTURE_2D, GL_RGBA8, image1->palette_width, GL_RGBA, GL_UNSIGNED_BYTE, image1->palette);