From 8f3b6a23710c3ae2df620dfb4b1625ee89516db4 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 12 Jan 2023 14:37:05 +0100 Subject: [PATCH] lr: call set_system_av_info even for dx11 call was disabled due to a crash that doesn't happen anymore Issue #863 --- shell/libretro/libretro.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shell/libretro/libretro.cpp b/shell/libretro/libretro.cpp index 97125e8c8..c1200b783 100644 --- a/shell/libretro/libretro.cpp +++ b/shell/libretro/libretro.cpp @@ -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);