SDL: fix a crash issue caused by sdl clipboard
We should not call SDL_PumpEvents in this clipboard related interface. SDL_PumpEvents should only be called in mainloop. Please refer the remarks about SDL_PumpEvents here: wiki.libsdl.org/CategoryAPI Delete SDL_PumpEvents here will not impact the functionality of SDL_GetClipboardText theoretically. Because, the mainloop will call SDL_PumpEvents frequentlyl to update the events in time. Will not so timely as call it here, but can avoid aynchronous issue, which worth the cost.
Showing
想要评论请 注册 或 登录