cleanup and consolidate glGet

This merges all our glGetInteger|Float|Boolean, so we don't need to duplicate code 3 times. Hopefully this is the correct thing to do :)