mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 02:09:06 +00:00
VideoCommon: Support hot reloading of VS expand
This commit is contained in:
parent
3912fa7a2e
commit
1e9b6f88e4
4 changed files with 10 additions and 5 deletions
|
@ -488,6 +488,7 @@ void Renderer::CheckForConfigChanges()
|
|||
|
||||
UpdateActiveConfig();
|
||||
FreeLook::UpdateActiveConfig();
|
||||
g_vertex_manager->OnConfigChange();
|
||||
|
||||
g_freelook_camera.SetControlType(FreeLook::GetActiveConfig().camera_config.control_type);
|
||||
|
||||
|
|
|
@ -826,6 +826,12 @@ void VertexManagerBase::UpdatePipelineObject()
|
|||
}
|
||||
}
|
||||
|
||||
void VertexManagerBase::OnConfigChange()
|
||||
{
|
||||
// Reload index generator function tables in case VS expand config changed
|
||||
m_index_generator.Init();
|
||||
}
|
||||
|
||||
void VertexManagerBase::OnDraw()
|
||||
{
|
||||
m_draw_counter++;
|
||||
|
|
|
@ -140,6 +140,9 @@ public:
|
|||
u32* out_offset, const void* palette_data, u32 palette_size,
|
||||
TexelBufferFormat palette_format, u32* out_palette_offset);
|
||||
|
||||
// Call if active config changes
|
||||
void OnConfigChange();
|
||||
|
||||
// CPU access tracking - call after a draw call is made.
|
||||
void OnDraw();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue