Fix X11/Wayland addTimer returning incorrect timer ids
This commit is contained in:
parent
d4b477ad78
commit
7624578c21
2
glfw/backend_utils.c
vendored
2
glfw/backend_utils.c
vendored
@ -122,7 +122,7 @@ addTimer(EventLoopData *eld, const char *name, double interval, int enabled, boo
|
||||
t->free = free;
|
||||
t->id = ++timer_counter;
|
||||
update_timers(eld);
|
||||
return t->id;
|
||||
return timer_counter;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user