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.16 by root, Thu Jul 19 13:45:18 2007 UTC vs.
Revision 1.17 by root, Thu Jul 19 20:12:06 2007 UTC

161 161
162 # rendering means we need to scale in some way 162 # rendering means we need to scale in some way
163 my $render = $self->{render_cb} || $rw != $dw || $th != $dh; 163 my $render = $self->{render_cb} || $rw != $dw || $th != $dh;
164 164
165 if ($render) { 165 if ($render) {
166 #d#glClear 0,0,0,0;
167 glViewport 0, 0, $tw, $th; 166 glViewport 0, 0, $tw, $th;
167 glClear 0, 0, 0, 0;
168 glMatrixMode GL_PROJECTION; 168 glMatrixMode GL_PROJECTION;
169 glLoadIdentity; 169 glLoadIdentity;
170 glOrtho 0, $tw, 0, $th, -10000, 10000; 170 glOrtho 0, $tw, 0, $th, -10000, 10000;
171 glMatrixMode GL_MODELVIEW; 171 glMatrixMode GL_MODELVIEW;
172 glLoadIdentity; 172 glLoadIdentity;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines