… | … | ||
---|---|---|---|
197 | 197 | ||
198 | unless ($tw && $th) { | 198 | unless ($tw && $th) { |
199 | $tw = $th = 1; | 199 | $tw = $th = 1; |
200 | $data = "\x00" x 64; | 200 | $data = "\x00" x 64; |
201 | } | 201 | } |
202 | |||
203 | $self->{minified} = [CFClient::average $tw, $th, $data] | ||
204 | if defined $data; | ||
202 | 205 | ||
203 | unless ($GL_NPOT) { | 206 | unless ($GL_NPOT) { |
204 | # TODO: does not work for zero-sized textures | 207 | # TODO: does not work for zero-sized textures |
205 | $tw = topot $tw; | 208 | $tw = topot $tw; |
206 | $th = topot $th; | 209 | $th = topot $th; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |