Only explicitly create an OpenGL 3.x context if r_glCoreProfile or r_glDebugProfile are set

This matches the previous custom code