Added startRender and endRender calls and manually clear backbuffer (fixes #1).