Cleaned OpenGL init code a little