FIX: Ensure OpenGL context is present when necessary