Fix running editor on older D3D10 backend
This commit is contained in:
@@ -140,12 +140,15 @@ bool DeformableMaterialShader::Load()
|
||||
psDesc.HS = _shader->GetHS("HS");
|
||||
psDesc.DS = _shader->GetDS("DS");
|
||||
}
|
||||
|
||||
|
||||
#if USE_EDITOR
|
||||
// Quad Overdraw
|
||||
psDesc.VS = _shader->GetVS("VS_SplineModel");
|
||||
psDesc.PS = _shader->GetPS("PS_QuadOverdraw");
|
||||
_cache.QuadOverdraw.Init(psDesc);
|
||||
if (_shader->HasShader("PS_QuadOverdraw"))
|
||||
{
|
||||
// Quad Overdraw
|
||||
psDesc.VS = _shader->GetVS("VS_SplineModel");
|
||||
psDesc.PS = _shader->GetPS("PS_QuadOverdraw");
|
||||
_cache.QuadOverdraw.Init(psDesc);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_info.BlendMode == MaterialBlendMode::Opaque)
|
||||
|
||||
Reference in New Issue
Block a user