Implement OpenGL context creation