Avoid duplicating a condition.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31011 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-04 19:42:52 +00:00
parent 5e8cfc7230
commit 1a42a53fd2
1 changed files with 4 additions and 4 deletions

View File

@ -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