Serialise basePipelineIndex properly instead of as empty

* Setting it to empty is invalid for derived pipelines - since we don't want the
  index to be 0 we want to use basePipelineHandle. We patched it to -1 before
  serialising so the value is safe.
This commit is contained in:
baldurk
2019-04-04 12:31:35 +01:00
parent d44a00c898
commit f742344c95
+1 -1
View File
@@ -2511,7 +2511,7 @@ void DoSerialise(SerialiserType &ser, VkGraphicsPipelineCreateInfo &el)
else
SERIALISE_MEMBER_EMPTY(basePipelineHandle);
SERIALISE_MEMBER_EMPTY(basePipelineIndex);
SERIALISE_MEMBER(basePipelineIndex);
}
template <>