mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 22:20:22 +00:00
Avoid duplicating a condition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31011 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5e8cfc7230
commit
1a42a53fd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user