From f5b63bfc9705f4d01d784b1568c73525f84d89df Mon Sep 17 00:00:00 2001 From: T_chan Date: Sun, 23 Jan 2022 13:07:58 +0000 Subject: [PATCH] Remove mipmapping from Nehe06 --- samples/nehe06/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/nehe06/main.c b/samples/nehe06/main.c index 8580e37..27d3ee4 100644 --- a/samples/nehe06/main.c +++ b/samples/nehe06/main.c @@ -137,14 +137,12 @@ void LoadGLTextures() { 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_MIN_FILTER,GL_LINEAR); // scale linearly when image smaller than texture // 2d texture, level of detail 0 (normal), 3 components (red, green, blue), x size from image, y size from image, // border 0 (normal), rgb color data, unsigned byte data, and finally the data itself. glTexImage2D(GL_TEXTURE_2D, 0, 3, image1->sizeX, image1->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, image1->data); - glGenerateMipmapEXT(GL_TEXTURE_2D); - free(image1); };