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.22 by root, Tue Jul 24 00:11:18 2007 UTC vs.
Revision 1.23 by root, Tue Jul 24 01:24:27 2007 UTC

164 ($dw, $dh) = ($tw, $th); 164 ($dw, $dh) = ($tw, $th);
165 } 165 }
166 } 166 }
167 167
168 if ($render) { 168 if ($render) {
169 $ox = int .5 * ($::WIDTH - $tw); 169 $ox = int .5 * ($::WIDTH - $rw);
170 $oy = int .5 * ($::HEIGHT - $th); 170 $oy = int .5 * ($::HEIGHT - $rh);
171 171
172 glViewport $ox, $oy, $tw, $th; 172 glViewport $ox, $oy, $tw, $th;
173 #glScissor 0, 0, $tw, $th; 173 #glScissor 0, 0, $tw, $th;
174 #glEnable GL_SCISSOR_TEST; 174 #glEnable GL_SCISSOR_TEST;
175 glMatrixMode GL_PROJECTION; 175 glMatrixMode GL_PROJECTION;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines