Fix running editor on older D3D10 backend
This commit is contained in:
@@ -196,14 +196,17 @@ bool DeferredMaterialShader::Load()
|
||||
_cache.DefaultSkinned.Init(psDesc);
|
||||
|
||||
#if USE_EDITOR
|
||||
// Quad Overdraw
|
||||
psDesc.VS = _shader->GetVS("VS");
|
||||
psDesc.PS = _shader->GetPS("PS_QuadOverdraw");
|
||||
_cache.QuadOverdraw.Init(psDesc);
|
||||
psDesc.VS = _shader->GetVS("VS", 1);
|
||||
_cacheInstanced.Depth.Init(psDesc);
|
||||
psDesc.VS = _shader->GetVS("VS_Skinned");
|
||||
_cache.QuadOverdrawSkinned.Init(psDesc);
|
||||
if (_shader->HasShader("PS_QuadOverdraw"))
|
||||
{
|
||||
// Quad Overdraw
|
||||
psDesc.VS = _shader->GetVS("VS");
|
||||
psDesc.PS = _shader->GetPS("PS_QuadOverdraw");
|
||||
_cache.QuadOverdraw.Init(psDesc);
|
||||
psDesc.VS = _shader->GetVS("VS", 1);
|
||||
_cacheInstanced.Depth.Init(psDesc);
|
||||
psDesc.VS = _shader->GetVS("VS_Skinned");
|
||||
_cache.QuadOverdrawSkinned.Init(psDesc);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Motion Vectors pass
|
||||
|
||||
Reference in New Issue
Block a user