fixed a bug at MaterialParameters

This commit is contained in:
2022-03-28 17:42:52 +08:00
parent 77836d7121
commit c33bd33c5f

View File

@@ -69,7 +69,7 @@ bool MaterialParameters::BindInputAttachment(const AnsiString &name,ImageView *i
if(name.IsEmpty()||!iv)
return(false);
const int index=mds->GetSampler(name);
const int index=mds->GetAttachment(name);
if(index<0)
return(false);