mirror of https://github.com/mpv-player/mpv
textures smaller 64x64 might not be supported
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16223 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c7888c0a7f
commit
5543cc2bf5
|
@ -146,13 +146,13 @@ static int initTextures()
|
|||
GLint format=0;
|
||||
GLenum err;
|
||||
|
||||
/* achieve the 2**e_x:=texture_width, 2**e_y:=texture_height */
|
||||
s=1;
|
||||
// textures smaller than 64x64 might not be supported
|
||||
s=64;
|
||||
while (s<image_width)
|
||||
s*=2;
|
||||
texture_width=s;
|
||||
|
||||
s=1;
|
||||
s=64;
|
||||
while (s<image_height)
|
||||
s*=2;
|
||||
texture_height=s;
|
||||
|
|
Loading…
Reference in New Issue