Some helper functions for GLES 1.1/2 on the raspberry pi.