summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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;