ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Texture.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Texture.pm (file contents):
Revision 1.2 by root, Mon May 29 02:01:56 2006 UTC vs.
Revision 1.3 by root, Thu Jun 1 05:04:41 2006 UTC

122 unless ($tw > 0 && $th > 0) { 122 unless ($tw > 0 && $th > 0) {
123 $tw = $th = 1; 123 $tw = $th = 1;
124 $data = "\x00" x 64; 124 $data = "\x00" x 64;
125 } 125 }
126 126
127 $self->{minified} = [CFClient::average $tw, $th, $data] 127 $self->{minified} ||= [CFClient::average $tw, $th, $data]
128 if $self->{minify}; 128 if $self->{minify};
129 129
130 unless ($GL_NPOT) { 130 unless ($GL_NPOT) {
131 # TODO: does not work for zero-sized textures 131 # TODO: does not work for zero-sized textures
132 $tw = topot $tw; 132 $tw = topot $tw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines