start of gles thread