--- deliantra/Deliantra-Client/DC.pm 2006/04/08 18:18:09 1.11 +++ deliantra/Deliantra-Client/DC.pm 2006/04/08 18:48:34 1.12 @@ -141,6 +141,12 @@ $data = $self->{data}; } elsif (exists $self->{rendercb}) { glViewport 0, 0, $self->{width}, $self->{height}; + glMatrixMode GL_PROJECTION; + glLoadIdentity; + glOrtho 0, $self->{width}, $self->{height}, 0, -100, 100; + glMatrixMode GL_MODELVIEW; + glPushmatrix; + glLoadIdentity; glClear GL_COLOR_BUFFER_BIT; $self->{rendercb}->($self, $self->{width}, $self->{height}); @@ -186,7 +192,9 @@ 0, 0, $self->{width}, $self->{height}, 0; + glPopmatrix; warn "ERR: ". (glGetError). "\n"; + sleep 1; } }