diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-14 19:36:34 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-14 19:36:34 +0000 |
commit | 5543cc2bf5cb82674751e316c60aded300c0cf53 (patch) | |
tree | 937ae820a6d2a2f9e4fdd3678f44f55f2ee60664 /libvo/vo_gl2.c | |
parent | c7888c0a7f5315df7e22997afd1ed3ee842dd9f8 (diff) | |
download | mpv-5543cc2bf5cb82674751e316c60aded300c0cf53.tar.bz2 mpv-5543cc2bf5cb82674751e316c60aded300c0cf53.tar.xz |
textures smaller 64x64 might not be supported
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16223 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r-- | libvo/vo_gl2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index c539d815bd..3331fdcd79 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -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; |