Mercurial > mplayer.hg
comparison libvo/vo_gl2.c @ 16222:8683e4609f3f
textures smaller 64x64 might not be supported
author | reimar |
---|---|
date | Sun, 14 Aug 2005 19:36:34 +0000 |
parents | a8063634ebd1 |
children | f18e92e72216 |
comparison
equal
deleted
inserted
replaced
16221:a8063634ebd1 | 16222:8683e4609f3f |
---|---|
144 int s; | 144 int s; |
145 int x=0, y=0; | 145 int x=0, y=0; |
146 GLint format=0; | 146 GLint format=0; |
147 GLenum err; | 147 GLenum err; |
148 | 148 |
149 /* achieve the 2**e_x:=texture_width, 2**e_y:=texture_height */ | 149 // textures smaller than 64x64 might not be supported |
150 s=1; | 150 s=64; |
151 while (s<image_width) | 151 while (s<image_width) |
152 s*=2; | 152 s*=2; |
153 texture_width=s; | 153 texture_width=s; |
154 | 154 |
155 s=1; | 155 s=64; |
156 while (s<image_height) | 156 while (s<image_height) |
157 s*=2; | 157 s*=2; |
158 texture_height=s; | 158 texture_height=s; |
159 | 159 |
160 gl_internal_format = getInternalFormat(); | 160 gl_internal_format = getInternalFormat(); |