Add check to see if GL attributes have been set correctly.