egl_dri2: Just cast the pointer difference to an int