making GLES compatible