Bug #416: Copy framebuffer to a texture instead of not clearing

Potentially faster than the previous workaround, and should work for triple buffering too.