It was unconditionally binding the desktop-GL API and requesting the wrong API version in the case of GLES1.