--- deliantra/Deliantra-Client/DC/Texture.pm 2007/07/19 22:10:46 1.19 +++ deliantra/Deliantra-Client/DC/Texture.pm 2007/07/19 23:29:17 1.21 @@ -166,7 +166,8 @@ if ($render) { glViewport 0, 0, $tw, $th; - glClear 0, 0, 0, 0; + #glScissor 0, 0, $tw, $th; + #glEnable GL_SCISSOR_TEST; glMatrixMode GL_PROJECTION; glLoadIdentity; glOrtho 0, $tw, 0, $th, -10000, 10000; @@ -177,6 +178,8 @@ glScale $rw / $dw, $rh / $dh; $self->{render_cb}->($self, $rw, $rh); } else { + glClearColor 0, 0, 0, 0; + glClear GL_COLOR_BUFFER_BIT; glPixelZoom $tw / $dw, $th / $dh; glDrawPixels $dw, $dh, $self->{format}, @@ -219,6 +222,8 @@ 0; gl_check "copying to texture %dx%d if=%x", $tw, $th, $self->{internalformat}; + + #glDisable GL_SCISSOR_TEST; } else { glTexImage2D GL_TEXTURE_2D, 0, $self->{internalformat},