Fix crash if mouse_x or mouse_y are hooked
commit4c9bb20270cb2bf148bf6812397ea24faf70aa43
authorIlari Liusvaara <ilariliusvaara@welho.com>
Sat, 23 Jul 2016 08:16:34 +0000 (23 11:16 +0300)
committerIlari Liusvaara <ilariliusvaara@welho.com>
Sat, 23 Jul 2016 08:16:34 +0000 (23 11:16 +0300)
tree854c633ab68af43094d6c0b8195afa900022c6a7
parenteb6ff6c38b504a9fe0a3a2e2b7f24d063721f081
Fix crash if mouse_x or mouse_y are hooked

Turns out framebuffer draw recalibrates mouse_x and mouse_y, which then
calls into hook. Which is no-no, because framebuffer draw runs in GUI
thread, and hooks must run in game thread.
include/core/framebuffer.hpp
src/core/framebuffer.cpp
src/core/instance.cpp