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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 4d64dfb59e..edebfdf417 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -157,12 +157,12 @@ static int initTextures()
/* achieve the 2**e_x:=texture_width, 2**e_y:=texture_height */
s=1;
- while (s<texture_width)
+ while (s<image_width)
s*=2;
texture_width=s;
s=1;
- while (s<texture_height)
+ while (s<image_height)
s*=2;
texture_height=s;