Make love.event.clear thread-safe, though it's only callable from the main thread (with SDL backend, anyway)

This commit is contained in:
Bart van Strien
2011-12-23 12:16:36 +01:00
parent bc278cf2b8
commit e0dcf55703
3 changed files with 12 additions and 5 deletions
+1 -5
View File
@@ -77,11 +77,7 @@ namespace sdl
// Do nothing with 'e' ...
}
while (!queue.empty())
{
queue.back()->release();
queue.pop();
}
love::event::Event::clear();
}
Message *Event::convert(SDL_Event & e)