prepare for gles2 implementation