rework gles wrap calling