mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-16 23:55:45 -04:00
Rewrite host GPU abstraction
- Don't have to repeat the same thing for 4 renderers. - Add native Metal renderer.
This commit is contained in:
@ -71,11 +71,11 @@ void PostProcessingSettingsWidget::updateShaderConfigPanel(s32 index)
|
||||
if (index < 0)
|
||||
return;
|
||||
|
||||
FrontendCommon::PostProcessingShader& shader = m_ui.widget->getChain().GetShaderStage(static_cast<u32>(index));
|
||||
if (!shader.HasOptions())
|
||||
PostProcessingShader* shader = m_ui.widget->getChain().GetShaderStage(static_cast<u32>(index));
|
||||
if (!shader->HasOptions())
|
||||
return;
|
||||
|
||||
m_shader_config = new PostProcessingShaderConfigWidget(m_ui.scrollArea, &shader);
|
||||
m_shader_config = new PostProcessingShaderConfigWidget(m_ui.scrollArea, shader);
|
||||
connect(m_shader_config, &PostProcessingShaderConfigWidget::configChanged,
|
||||
[this]() { onConfigChanged(m_ui.widget->getChain().GetConfigString()); });
|
||||
m_ui.scrollArea->setWidget(m_shader_config);
|
||||
|
Reference in New Issue
Block a user