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 committed 2026-08-05 16:37:57 +02:00
1 parent e260188c49
commit 88bfab066c
27 files changed
+96 -78

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ void SDLHeadlessGLGraphicsContext::ShutdownSurface() {
glContext_ = nullptr;
}
bool SDLHeadlessGLGraphicsContext::InitSurface(WindowSystem winsys, void *data1, void *data2, std::string *errorMessage) {
bool SDLHeadlessGLGraphicsContext::InitSurface(WindowSystem winsys, void *data1, void *data2, int widthHint, int heightHint, std::string *errorMessage) {
// Not used in this context.
return true;
}