Fix outline strip vertex buffer

This commit is contained in:
baldurk
2016-02-07 18:44:05 +01:00
parent fb910e1137
commit b389a4b349
2 changed files with 10 additions and 10 deletions
+9 -9
View File
@@ -376,17 +376,17 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
{
float data[] = {
0.0f, -1.0f, 0.0f, 1.0f,
1.0f, -1.0f, 0.0f, 1.0f,
1.0f, -1.0f, 0.0f, 1.0f,
1.0f, 0.0f, 0.0f, 1.0f,
1.0f, 0.0f, 0.0f, 1.0f,
0.0f, 0.0f, 0.0f, 1.0f,
1.0f, 0.0f, 0.0f, 1.0f,
0.0f, 0.1f, 0.0f, 1.0f,
0.0f, -1.0f, 0.0f, 1.0f,
1.0f, 0.0f, 0.0f, 1.0f,
1.0f, 1.0f, 0.0f, 1.0f,
1.0f, 1.0f, 0.0f, 1.0f,
0.0f, 1.0f, 0.0f, 1.0f,
0.0f, 1.0f, 0.0f, 1.0f,
0.0f, -0.1f, 0.0f, 1.0f,
};
m_OutlineStripVBO.Create(driver, dev, 128, 0);
+1 -1
View File
@@ -949,7 +949,7 @@ void VulkanReplay::RenderHighlightBox(float w, float h, float scale)
vt->CmdDraw(Unwrap(cmd), 8, 1, 0, 0);
genericuniforms secondOutline;
secondOutline.Offset = Vec4f(-xpixdim, ypixdim, 0.0f, 0.0f);
secondOutline.Offset = Vec4f(-xpixdim, -ypixdim, 0.0f, 0.0f);
secondOutline.Scale = Vec4f(xdim+xpixdim*2, ydim+ypixdim*2, 1.0f, 1.0f);
secondOutline.Color = Vec4f(0.0f, 0.0f, 0.0f, 1.0f);