Fixes a bug in the dedicated method to get the GLProfile, skips forward compatible profiles