mirror of https://github.com/snes9xgit/snes9x.git
Qt/Vulkan: Don't try to draw black any more.
This commit is contained in:
parent
fb89cbf4c4
commit
15ae9de25b
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue