Fixed issue with core compatibility vs. OpenGL version