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:
reimar 2005-08-14 19:36:34 +00:00
parent c7888c0a7f
commit 5543cc2bf5
1 changed files with 3 additions and 3 deletions

View File

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