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

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.53 by root, Wed May 17 16:17:01 2006 UTC vs.
Revision 1.54 by root, Fri May 19 03:49:47 2006 UTC

355 glGetError; 355 glGetError;
356 356
357 if (defined $data) { 357 if (defined $data) {
358 glTexImage2D GL_TEXTURE_2D, 0, 358 glTexImage2D GL_TEXTURE_2D, 0,
359 $self->{internalformat}, 359 $self->{internalformat},
360 $tw, $th, # need to pad texture first 360 $tw, $th,
361 0, 361 0,
362 $self->{format}, 362 $self->{format},
363 $self->{type}, 363 $self->{type},
364 $data; 364 $data;
365 CFClient::gl_check "uploading texture %dx%d if=%x f=%x t=%x", 365 CFClient::gl_check "uploading texture %dx%d if=%x f=%x t=%x",
382 382
383 glDeleteTexture delete $self->{name} 383 glDeleteTexture delete $self->{name}
384 if $self->{name}; 384 if $self->{name};
385} 385}
386 386
387sub restore_state{ 387sub restore_state {
388 $_->upload 388 $_->upload
389 for values %TEXTURES; 389 for values %TEXTURES;
390}; 390}
391 391
3921; 3921;
393 393
394=back 394=back
395 395

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines