Ported latest GL changes to android renderer