Don't overwrite sampler types during writing

This commit is contained in:
baldurk committed 2016-10-27 12:39:17 +02:00
1 parent 88939d1f21
commit c49496bc16
1 file changed
+2 -1
+2 -1
View File
@@ -517,7 +517,8 @@ void Serialiser::Serialise(const char *name, D3D12Descriptor &el)
}
// for sampler types, this will be overwritten when serialising the sampler descriptor
el.nonsamp.type = type;
if(m_Mode < WRITING)
el.nonsamp.type = type;
switch(type)
{