Also set first underviced render frame request

This commit is contained in:
Kovid Goyal 2021-08-01 12:59:22 +05:30
parent ade4e67b51
commit c797944923
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -366,6 +366,7 @@ requestRenderFrame(_GLFWwindow *w, GLFWcocoarenderframefun callback) {
dl = _glfw_create_display_link(displayID);
if (dl) {
dl->lastRenderFrameRequestedAt = now;
dl->first_unserviced_render_frame_request_at = now;
if (!CVDisplayLinkIsRunning(dl->displayLink)) CVDisplayLinkStart(dl->displayLink);
}
}