Fix CmdUpdateBuffer to handle ring-buffering of UBO..

This commit is contained in:
baldurk
2015-10-23 10:49:07 +02:00
parent 6ec36d6695
commit b03a1df2fe
+1 -1
View File
@@ -952,7 +952,7 @@ void VulkanReplay::RenderHighlightBox(float w, float h, float scale)
secondOutline.Scale = Vec4f(xdim+xpixdim*2, ydim+ypixdim*2, 1.0f, 1.0f);
secondOutline.Color = Vec4f(0.0f, 0.0f, 0.0f, 1.0f);
vt->CmdUpdateBuffer(Unwrap(cmd), Unwrap(GetDebugManager()->m_GenericUBO.buf), 0, sizeof(genericuniforms), (uint32_t *)&secondOutline);
vt->CmdUpdateBuffer(Unwrap(cmd), Unwrap(GetDebugManager()->m_GenericUBO.buf), uboOffs, sizeof(genericuniforms), (uint32_t *)&secondOutline);
vt->CmdDraw(Unwrap(cmd), 8, 1, 0, 0);