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.55 by root, Fri May 19 16:43:56 2006 UTC vs.
Revision 1.58 by root, Tue May 23 00:26:17 2006 UTC

41 41
42 glDisable GL_COLOR_MATERIAL; 42 glDisable GL_COLOR_MATERIAL;
43 glShadeModel GL_FLAT; 43 glShadeModel GL_FLAT;
44 glDisable GL_DITHER; 44 glDisable GL_DITHER;
45 glDisable GL_DEPTH_TEST; 45 glDisable GL_DEPTH_TEST;
46 glDepthMask 0;
46 glHint GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST; 47 glHint GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST;
47 48
48 CFClient::Texture::restore_state (); 49 CFClient::Texture::restore_state ();
49} 50}
50 51
51sub gl_check { 52sub gl_check {
52 return unless $GL_DEBUG; 53 return unless $GL_DEBUG;
53 54
54 if (my $error = glGetError) { 55 if (my $error = glGetError) {
55 Carp::cluck sprintf "opengl error %x while %s", $error, sprintf @_; 56 Carp::cluck sprintf "opengl error %x while %s", $error, &sprintf(@_);
56 } 57 }
57} 58}
58 59
59sub find_rcfile($) { 60sub find_rcfile($) {
60 my $path; 61 my $path;
105 -Home => "$Crossfire::VARDIR/pclient", 106 -Home => "$Crossfire::VARDIR/pclient",
106 -Cachesize => 1_000_000, 107 -Cachesize => 1_000_000,
107 -ErrFile => "$Crossfire::VARDIR/pclient/errorlog.txt", 108 -ErrFile => "$Crossfire::VARDIR/pclient/errorlog.txt",
108# -ErrPrefix => "DATABASE", 109# -ErrPrefix => "DATABASE",
109 -Verbose => 1, 110 -Verbose => 1,
110 -Flags => DB_CREATE | DB_RECOVER_FATAL | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN, 111 -Flags => DB_CREATE | DB_RECOVER | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN,
111 or die "unable to create/open database home $Crossfire::VARDIR/pclient: $BerkeleyDB::Error"; 112 or die "unable to create/open database home $Crossfire::VARDIR/pclient: $BerkeleyDB::Error";
112 113
113sub db_table($) { 114sub db_table($) {
114 my ($table) = @_; 115 my ($table) = @_;
115 116

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines