Implemented a way to retrieve legacy OpenGL APIs in case modern fails

Implemented a way to retrieve legacy OpenGL APIs in case modern fails