--- deliantra/Deliantra-Client/DC.pm 2006/04/12 21:35:10 1.30 +++ deliantra/Deliantra-Client/DC.pm 2006/04/14 14:55:27 1.31 @@ -181,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 { @@ -241,7 +240,7 @@ 0, 0, $tw, $th, 0; - glGetError and die; + glGetError and die "glCopyTexImage2D $tw,$th"; } }