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.38 by root, Mon Apr 17 06:50:26 2006 UTC vs.
Revision 1.39 by root, Tue Apr 18 01:36:12 2006 UTC

93mkdir "$Crossfire::VARDIR/pclient", 0777; 93mkdir "$Crossfire::VARDIR/pclient", 0777;
94 94
95our $DB_ENV = new BerkeleyDB::Env 95our $DB_ENV = new BerkeleyDB::Env
96 -Home => "$Crossfire::VARDIR/pclient", 96 -Home => "$Crossfire::VARDIR/pclient",
97 -Cachesize => 1_000_000, 97 -Cachesize => 1_000_000,
98 -ErrFile => "/proc/self/fd/2", 98 -ErrFile => "$Crossfire::VARDIR/pclient/errorlog.txt",
99 -ErrPrefix => "DATABASE", 99# -ErrPrefix => "DATABASE",
100 -Verbose => 1, 100 -Verbose => 1,
101 -Flags => DB_CREATE | DB_JOINENV | DB_RECOVER_FATAL | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN, 101 -Flags => DB_CREATE | DB_RECOVER_FATAL | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN,
102 or die "unable to create/open database home $Crossfire::VARDIR/pclient: $BerkeleyDB::Error"; 102 or die "unable to create/open database home $Crossfire::VARDIR/pclient: $BerkeleyDB::Error";
103 103
104sub db_table($) { 104sub db_table($) {
105 my ($table) = @_; 105 my ($table) = @_;
106 106
282 $tw, $th, # need to pad texture first 282 $tw, $th, # need to pad texture first
283 0, 283 0,
284 $self->{format}, 284 $self->{format},
285 $self->{type}, 285 $self->{type},
286 $data; 286 $data;
287 glGetError and die; 287 if (my $error = glGetError) {
288 warn sprintf "texture upload error: %x %dx%d i=%x f=%x t=%x\n",
289 $error, $tw, $th, $self->{internalformat}, $self->{format}, $self->{type};
290 }
288 } else { 291 } else {
289 glCopyTexImage2D GL_TEXTURE_2D, 0, 292 glCopyTexImage2D GL_TEXTURE_2D, 0,
290 $self->{internalformat}, 293 $self->{internalformat},
291 0, 0, 294 0, 0,
292 $tw, $th, 295 $tw, $th,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines