--- deliantra/Deliantra-Client/DC/Texture.pm 2006/06/14 16:20:23 1.5 +++ deliantra/Deliantra-Client/DC/Texture.pm 2006/06/14 18:59:31 1.6 @@ -89,10 +89,6 @@ $class->new (w => $w || 1, h => $h || 1, render_cb => $cb) } -sub topot { - (grep $_ >= $_[0], 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768)[0] -} - sub upload { my ($self) = @_; @@ -119,11 +115,6 @@ my ($tw, $th) = @$self{qw(w h)}; - unless ($tw > 0 && $th > 0) { - $tw = $th = 1; - $data = "\x00" x 64; - } - $self->{minified} ||= [CFClient::average $tw, $th, $data] if $self->{minify};