egl: Make resource void pointer in _eglCheckResource.