static void *unregister_surface(void *arg) {
		ISurface *surface = (ISurface *)arg;
		surface->unregisterBuffers();
		IPCThreadState::self()->flushCommands();
		return NULL;
	}