summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-04 19:42:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-04 19:42:52 +0000
commit1a42a53fd206b0b7d305d8f7d626aba1921403b8 (patch)
tree3e02a1584b6a4b0deab7717b96e1bb0228972546 /libvo
parent5e8cfc72305795289152b5bb823abd049e728323 (diff)
downloadmpv-1a42a53fd206b0b7d305d8f7d626aba1921403b8.tar.bz2
mpv-1a42a53fd206b0b7d305d8f7d626aba1921403b8.tar.xz
Avoid duplicating a condition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31011 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 8c3ee644bc..e1a71c0ce8 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -198,8 +198,9 @@ static int initTextures(void)
glGetTexLevelParameteriv
(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_INTERNAL_FORMAT, &format);
- if (format != gl_internal_format)
- {
+ if (format == gl_internal_format)
+ break;
+
mp_msg (MSGT_VO, MSGL_V, "[gl2] Needed texture [%dx%d] too big, trying ",
texture_width, texture_height);
@@ -214,9 +215,8 @@ static int initTextures(void)
mp_msg (MSGT_VO, MSGL_FATAL, "[gl2] Give up .. usable texture size not avaiable, or texture config error !\n");
return -1;
}
- }
}
- while (format != gl_internal_format && texture_width > 1 && texture_height > 1);
+ while (texture_width > 1 && texture_height > 1);
#ifdef TEXTURE_WIDTH
texture_width = TEXTURE_WIDTH;
#endif