fix crash on minimize
This commit is contained in:
parent
920f93ea7a
commit
5b29a2bd5b
@ -898,6 +898,13 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!swapchain_texture) {
|
||||||
|
SDL_CancelGPUCommandBuffer(command_buffer);
|
||||||
|
ImGui::Render();
|
||||||
|
ImDrawData *draw_data = ImGui::GetDrawData();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
per_frame.aspect_ratio = (float) window_width / (float) window_height;
|
per_frame.aspect_ratio = (float) window_width / (float) window_height;
|
||||||
SDL_PushGPUVertexUniformData(command_buffer, 0, &per_frame, sizeof(per_frame));
|
SDL_PushGPUVertexUniformData(command_buffer, 0, &per_frame, sizeof(per_frame));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user