Cleanup offscreen rendering code

Signed-off-by: Simon Busch <morphis@gravedo.de>