Add size hints for Vulkan surface size, using SDL window size, in case it can't be determined by the driver

This commit is contained in:
Henrik Rydgård
2026-08-05 16:37:57 +02:00
parent e260188c49
commit 88bfab066c
27 changed files with 96 additions and 78 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ bool RunMainLoop(GraphicsContext *graphicsContext, Application *application, std
bool MainThreadFunc(GraphicsContext *graphicsContext, Application *application, const WindowDesc &windowDesc, std::function<bool(GraphicsContext *)> frame) {
// This is now the render thread, and will spawn the emu thread below.
std::string error_string;
bool success = graphicsContext->InitSurface(windowDesc.winsys, windowDesc.data1, windowDesc.data2, &error_string);
bool success = graphicsContext->InitSurface(windowDesc.winsys, windowDesc.data1, windowDesc.data2, 0, 0, &error_string);
if (!success) {
return false;
}