Qt/Vulkan: Don't try to draw black any more.

This commit is contained in:
BearOso 2024-09-05 16:09:22 -05:00
parent fb89cbf4c4
commit 15ae9de25b
1 changed files with 2 additions and 7 deletions

View File

@ -124,6 +124,8 @@ bool EmuCanvasVulkan::createContext()
tryLoadShader(); tryLoadShader();
context->wait_idle();
QGuiApplication::sync(); QGuiApplication::sync();
paintEvent(nullptr); paintEvent(nullptr);
@ -256,13 +258,6 @@ void EmuCanvasVulkan::paintEvent(QPaintEvent *event)
} }
return; return;
} }
// Clear to black
uint8_t buffer[] = { 0, 0, 0, 0 };
if (shader_chain)
shader_chain->do_frame(buffer, 1, 1, 1, vk::Format::eR5G6B5UnormPack16, 0, 0, width(), height());
if (simple_output)
simple_output->do_frame(buffer, 1, 1, 1, 0, 0, width(), height());
} }
void EmuCanvasVulkan::deinit() void EmuCanvasVulkan::deinit()