Fix opengl errors on shutdown.
Reenable canvas capturing for scenepainters.