lr: call set_system_av_info even for dx11

call was disabled due to a crash that doesn't happen anymore
Issue #863
This commit is contained in:
Flyinghead 2023-01-12 14:37:05 +01:00
parent 673fb26d6e
commit 8f3b6a2371
1 changed files with 2 additions and 4 deletions

View File

@ -625,7 +625,7 @@ void setAVInfo(retro_system_av_info& avinfo)
void retro_resize_renderer(int w, int h, float aspectRatio)
{
if (w == framebufferWidth && h == framebufferHeight)
if (w == framebufferWidth && h == framebufferHeight && aspectRatio == framebufferAspectRatio)
return;
framebufferWidth = w;
framebufferHeight = h;
@ -634,9 +634,7 @@ void retro_resize_renderer(int w, int h, float aspectRatio)
maxFramebufferHeight = std::max(maxFramebufferHeight, framebufferHeight);
maxFramebufferWidth = std::max(maxFramebufferWidth, framebufferWidth);
if (avinfoNeeded
// TODO crash with dx11
&& config::RendererType != RenderType::DirectX11 && config::RendererType != RenderType::DirectX11_OIT)
if (avinfoNeeded)
{
retro_system_av_info avinfo;
setAVInfo(avinfo);