--- deliantra/Deliantra-Client/DC.pm 2006/04/12 20:42:52 1.29 +++ deliantra/Deliantra-Client/DC.pm 2006/04/14 14:55:27 1.31 @@ -34,8 +34,6 @@ $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2; - glClearColor 0.45, 0.45, 0.45, 1; - glEnable GL_TEXTURE_2D; glEnable GL_COLOR_MATERIAL; glShadeModel GL_FLAT; @@ -183,12 +181,11 @@ } elsif (exists $self->{render_cb}) { glViewport 0, 0, $self->{w}, $self->{h}; - glOrtho 0, $self->{w}, 0, $self->{h}, -10000, 10000; glMatrixMode GL_PROJECTION; glLoadIdentity; + glOrtho 0, $self->{w}, 0, $self->{h}, -10000, 10000; glMatrixMode GL_MODELVIEW; glLoadIdentity; - glClear GL_COLOR_BUFFER_BIT; $self->{render_cb}->($self, $self->{w}, $self->{h}); } else { @@ -243,7 +240,7 @@ 0, 0, $tw, $th, 0; - glGetError and die; + glGetError and die "glCopyTexImage2D $tw,$th"; } }