Fix restarting the event loop with the GL backend

We must reset the proxy to a queue so one can restart it with pending events
This commit is contained in:
Olivier Goffart 2021-05-11 17:48:56 +02:00
parent 9d0efd243e
commit 0034a3e67d
2 changed files with 8 additions and 3 deletions

View file

@ -28,7 +28,7 @@ TEST_CASE("C++ Timers")
}
SCENARIO("Quit from event")
TEST_CASE("Quit from event")
{
int called = 0;
sixtyfps::invoke_from_event_loop([&] {
@ -41,7 +41,7 @@ SCENARIO("Quit from event")
}
SCENARIO("Event from thread")
TEST_CASE("Event from thread")
{
std::atomic<int> called = 0;
auto t = std::thread([&] {