add missing ref to this.gl

maybe you had `gl` as a global, but this patch uses `this.gl` instead