Add some debug prints
This commit is contained in:
parent
ad560715a6
commit
b8faada186
1 changed files with 3 additions and 0 deletions
|
|
@ -352,7 +352,9 @@ cocoa_out_of_sequence_render(OSWindow *window) {
|
|||
// screen change events. Try to recover by recreating the drawable.
|
||||
// See https://github.com/kovidgoyal/kitty/issues/9463
|
||||
if (!current_framebuffer_is_ok()) {
|
||||
debug_rendering("Cocoa OpenGL framebuffer broken, re-creating\n");
|
||||
if (!glfwCocoaRecreateGLDrawable(window->handle) || !current_framebuffer_is_ok()) {
|
||||
debug_rendering("Cocoa OpenGL framebuffer re-creation failed\n");
|
||||
request_tick_callback();
|
||||
return;
|
||||
}
|
||||
|
|
@ -361,6 +363,7 @@ cocoa_out_of_sequence_render(OSWindow *window) {
|
|||
bool rendered = false;
|
||||
if (window->fonts_data->sprite_map) rendered = render_os_window(window, monotonic(), true);
|
||||
if (!rendered) {
|
||||
debug_rendering("Cocoa out of sequence render did not happen\n");
|
||||
blank_os_window(window);
|
||||
swap_window_buffers(window);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue