summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorleo2000-07-07 19:38:46 +0000
committerleo2000-07-07 19:38:46 +0000
commit8b2fedb2e9f901d146af77e0f539213f56ce1455 (patch)
tree622bfe8a624b90fcd91525a88b730c325b407037 /common
parent7811000f32133d7308f835578310e76a10dd0d2c (diff)
Fixed mipmap generation bug
git-svn-id: http://svn.leocad.org/trunk@78 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common')
-rw-r--r--common/texture.cpp2
1 files changed, 1 insertions, 1 deletions
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;