summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c6
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;