fix(vulkan): Fix "player" (#11314) 08c2e47d44

Testing window was restructured to allow the tests to destroy/recreate the device, but the render target was not being (re)created when the device was.

Co-authored-by: Josh Jersild <joshua@rive.app>
This commit is contained in:
JoshJRive
2025-12-18 23:37:57 +00:00
parent 4ef0187996
commit d0129efa4f
2 changed files with 7 additions and 1 deletions

View File

@@ -1 +1 @@
5e2ecca1694b867c1faefa859101a01e1c5ce88b
08c2e47d441a48c32ee10595e16ec5bf139cd367

View File

@@ -418,6 +418,12 @@ private:
m_height = m_androidWindowHeight;
}
m_renderTarget =
impl()->makeRenderTarget(m_width,
m_height,
m_swapchain->imageFormat(),
m_swapchain->imageUsageFlags());
if (m_device->name() == "Mali-G76" || m_device->name() == "Mali-G72")
{
// These devices (like the Huawei P30 or Galaxy S10) will end up