Procházet zdrojové kódy

Examples: GLFW+WebGPU: Fixed condition for when to recreate swapchain. (#7435, #7132)

Jules Fouchy před 1 rokem
rodič
revize
80a5fdb108
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/example_emscripten_wgpu/main.cpp

+ 1 - 1
examples/example_emscripten_wgpu/main.cpp

@@ -184,7 +184,7 @@ int main(int, char**)
         // React to changes in screen size
         int 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();
             CreateSwapChain(width, height);