mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
libretro: Build fix
This commit is contained in:
parent
e3ce0530bf
commit
f181b45760
|
@ -31,7 +31,7 @@ bool LibretroD3D11HostDisplay::RequestHardwareRendererContext(retro_hw_render_ca
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LibretroD3D11HostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name,
|
bool LibretroD3D11HostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name,
|
||||||
bool debug_device)
|
bool debug_device, bool threaded_presentation)
|
||||||
{
|
{
|
||||||
retro_hw_render_interface* ri = nullptr;
|
retro_hw_render_interface* ri = nullptr;
|
||||||
if (!g_retro_environment_callback(RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE, &ri))
|
if (!g_retro_environment_callback(RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE, &ri))
|
||||||
|
|
|
@ -11,7 +11,8 @@ public:
|
||||||
|
|
||||||
static bool RequestHardwareRendererContext(retro_hw_render_callback* cb);
|
static bool RequestHardwareRendererContext(retro_hw_render_callback* cb);
|
||||||
|
|
||||||
bool CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name, bool debug_device) override;
|
bool CreateRenderDevice(const WindowInfo& wi, std::string_view adapter_name, bool debug_device,
|
||||||
|
bool threaded_presentation) override;
|
||||||
|
|
||||||
void ResizeRenderWindow(s32 new_window_width, s32 new_window_height) override;
|
void ResizeRenderWindow(s32 new_window_width, s32 new_window_height) override;
|
||||||
bool ChangeRenderWindow(const WindowInfo& new_wi) override;
|
bool ChangeRenderWindow(const WindowInfo& new_wi) override;
|
||||||
|
|
|
@ -3,6 +3,12 @@ add_library(frontend-common
|
||||||
game_settings.h
|
game_settings.h
|
||||||
opengl_host_display.cpp
|
opengl_host_display.cpp
|
||||||
opengl_host_display.h
|
opengl_host_display.h
|
||||||
|
postprocessing_chain.cpp
|
||||||
|
postprocessing_chain.h
|
||||||
|
postprocessing_shader.cpp
|
||||||
|
postprocessing_shader.h
|
||||||
|
postprocessing_shadergen.cpp
|
||||||
|
postprocessing_shadergen.h
|
||||||
vulkan_host_display.cpp
|
vulkan_host_display.cpp
|
||||||
vulkan_host_display.h
|
vulkan_host_display.h
|
||||||
)
|
)
|
||||||
|
@ -50,12 +56,6 @@ if(NOT BUILD_LIBRETRO_CORE)
|
||||||
imgui_styles.h
|
imgui_styles.h
|
||||||
ini_settings_interface.cpp
|
ini_settings_interface.cpp
|
||||||
ini_settings_interface.h
|
ini_settings_interface.h
|
||||||
postprocessing_chain.cpp
|
|
||||||
postprocessing_chain.h
|
|
||||||
postprocessing_shader.cpp
|
|
||||||
postprocessing_shader.h
|
|
||||||
postprocessing_shadergen.cpp
|
|
||||||
postprocessing_shadergen.h
|
|
||||||
save_state_selector_ui.cpp
|
save_state_selector_ui.cpp
|
||||||
save_state_selector_ui.h
|
save_state_selector_ui.h
|
||||||
)
|
)
|
||||||
|
|
|
@ -473,11 +473,13 @@ bool D3D11HostDisplay::CreateSwapChainRTV()
|
||||||
m_window_info.surface_width = backbuffer_desc.Width;
|
m_window_info.surface_width = backbuffer_desc.Width;
|
||||||
m_window_info.surface_height = backbuffer_desc.Height;
|
m_window_info.surface_height = backbuffer_desc.Height;
|
||||||
|
|
||||||
|
#ifdef WITH_IMGUI
|
||||||
if (ImGui::GetCurrentContext())
|
if (ImGui::GetCurrentContext())
|
||||||
{
|
{
|
||||||
ImGui::GetIO().DisplaySize.x = static_cast<float>(backbuffer_desc.Width);
|
ImGui::GetIO().DisplaySize.x = static_cast<float>(backbuffer_desc.Width);
|
||||||
ImGui::GetIO().DisplaySize.y = static_cast<float>(backbuffer_desc.Height);
|
ImGui::GetIO().DisplaySize.y = static_cast<float>(backbuffer_desc.Height);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue