Fix DoF fix not using viewport height.

This commit is contained in:
Skyth 2025-01-10 22:38:20 +03:00
parent 979fea19e6
commit fe0979ceba

View file

@ -4386,7 +4386,7 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
default: default:
{ {
size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale); size_t height = round(Video::s_viewportHeight * Config::ResolutionScale);
if (height > 1440) if (height > 1440)
shaderIndex = GAUSSIAN_BLUR_9X9; shaderIndex = GAUSSIAN_BLUR_9X9;