mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
VideoCommon: Support hot reloading of VS expand
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user