mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-12 02:00:58 +01:00
This commit is contained in:
parent
f9df6bf662
commit
80a5fdb108
@ -184,7 +184,7 @@ int main(int, char**)
|
|||||||
// React to changes in screen size
|
// React to changes in screen size
|
||||||
int width, height;
|
int width, height;
|
||||||
glfwGetFramebufferSize((GLFWwindow*)window, &width, &height);
|
glfwGetFramebufferSize((GLFWwindow*)window, &width, &height);
|
||||||
if (width != wgpu_swap_chain_width && height != wgpu_swap_chain_height)
|
if (width != wgpu_swap_chain_width || height != wgpu_swap_chain_height)
|
||||||
{
|
{
|
||||||
ImGui_ImplWGPU_InvalidateDeviceObjects();
|
ImGui_ImplWGPU_InvalidateDeviceObjects();
|
||||||
CreateSwapChain(width, height);
|
CreateSwapChain(width, height);
|
||||||
|
Loading…
Reference in New Issue
Block a user