GLES2 fixes for rpi