Removed last inappropriate calls to GLES1 API. (Needs testing before review)