Switching between software and ogl renderer