From 8b2fedb2e9f901d146af77e0f539213f56ce1455 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 7 Jul 2000 19:38:46 +0000 Subject: Fixed mipmap generation bug git-svn-id: http://svn.leocad.org/trunk@78 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/texture.cpp b/common/texture.cpp index 00ad097..72a0453 100644 --- a/common/texture.cpp +++ b/common/texture.cpp @@ -239,7 +239,7 @@ bool Texture::FinishLoadImage (bool bFilter, void *data) glTexImage2D (GL_TEXTURE_2D, 0, components, w, h, 0, m_nFormat, GL_UNSIGNED_BYTE, data); if (bFilter) - for (level = 1; ((w != 1) && (h != 1)); level++) + for (level = 1; ((w != 1) || (h != 1)); level++) { GLubyte *out, *in; int row; -- cgit v1.2.3