mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Fixes outdated state on disabling GPU skinning
This commit is contained in:
parent
4a7b7e7df1
commit
e64a138f92
1 changed files with 10 additions and 10 deletions
|
|
@ -212,17 +212,17 @@ void CRenderingOptions::ReadConfigAndSetupHooks()
|
||||||
m_ConfigHooks->Setup("silhouettes", m_Silhouettes);
|
m_ConfigHooks->Setup("silhouettes", m_Silhouettes);
|
||||||
|
|
||||||
m_ConfigHooks->Setup("gpuskinning", [this]() {
|
m_ConfigHooks->Setup("gpuskinning", [this]() {
|
||||||
const Renderer::Backend::IDevice::Capabilities& capabilities{
|
if (g_ConfigDB.Get("gpuskinning", false))
|
||||||
g_VideoMode.GetBackendDevice()->GetCapabilities()};
|
|
||||||
if (!g_ConfigDB.Get("gpuskinning", false))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (capabilities.computeShaders && capabilities.storage)
|
|
||||||
m_GPUSkinning = true;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
m_GPUSkinning = false;
|
const Renderer::Backend::IDevice::Capabilities& capabilities{
|
||||||
LOGMESSAGE("GPU skinning isn't supported on the current hardware.");
|
g_VideoMode.GetBackendDevice()->GetCapabilities()};
|
||||||
|
if (capabilities.computeShaders && capabilities.storage)
|
||||||
|
m_GPUSkinning = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_GPUSkinning = false;
|
||||||
|
LOGMESSAGE("GPU skinning isn't supported on the current hardware.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CRenderer::IsInitialised())
|
if (CRenderer::IsInitialised())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue