From 890dc9b29f41eba8a7cef51787b88cdeaffd5819 Mon Sep 17 00:00:00 2001 From: gmueller Date: Thu, 13 Jan 2011 08:46:23 +0100 Subject: [PATCH] fixed box texture filtering --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ef907f8..e5f9cd4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -169,7 +169,7 @@ void draw_box() { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); glfwLoadTexture2D("data/wall.tga", GLFW_BUILD_MIPMAPS_BIT); } else { glBindTexture(GL_TEXTURE_2D, wallTex); @@ -189,7 +189,7 @@ void draw_box() { glPushMatrix(); glTranslated(2000.0, 0.0, 0.0); //glScaled(5000.0f, 5000.0f, 5000.0f); - float s = 3000.0f, t = 5.0f; + float s = 3000.0f, t = 10.0f; // Just in case we set all vertices to white. glColor4f(1, 1, 1, 1);