AryanpurTech / BlueEngine

Blue Engine is a general-purpose and easy-to-use graphics engine written in rust.
Apache License 2.0
337 stars 16 forks source link

That "Outdated" issue #7

Closed werner291 closed 3 years ago

werner291 commented 3 years ago

Hello (I'm Derg on Discord),

I see what's going on with the error message:

Resizing the window causes the swapchain to become outdated (specifically, gfx_hal::window::OutOfDate is the underlying error message).

I'm assuming that, sometime after you attempt to draw to the resized window, the event loop receives a WindowEvent::Resized, which causes the renderer to recreate the swapchain, and thus resolves the invalidation.

Once you remove that call to resize in response to the window resize vent, the Outdated error shows up every frame.

ElhamAryanpur commented 3 years ago

This was fixed on 0.1.92 version. Please test against that version and let me know if the problem still exist!