Compare commits

..

2 Commits

Author SHA1 Message Date
e2dk4r
d12aa580c6
Merge 20fcf2a080 into 5dbba07e33 2024-09-28 09:21:40 +00:00
e2dk4r
20fcf2a080 headless: fix vulkan exclusive fullscreen ignored
Running in headless mode under wayland (e.g. Sway) compositor, it's not
possible to set any resolution other than 1280x720.

This is because Ryujinx was not updating default surface dimension when
creating swapchain.
2024-09-28 12:21:34 +03:00
2 changed files with 4 additions and 6 deletions

View File

@ -743,7 +743,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
constantBufferUsePerStageMask &= ~(1 << index);
}
if (checkTextures && _allTextures.Length > 0)
if (checkTextures)
{
TexturePool pool = channel.TextureManager.GetTexturePool(poolState.TexturePoolGpuVa, poolState.TexturePoolMaximumId);

View File

@ -44,11 +44,9 @@ namespace Ryujinx.Headless.SDL2.Vulkan
{
Logger.Warning?.Print(LogClass.Application, $"Could not retrieve display bounds: {SDL_GetError()}");
}
else
{
width = displayBounds.w;
height = displayBounds.h;
}
width = displayBounds.w;
height = displayBounds.h;
}
Renderer?.Window.SetSize(width, height);