From 07c43b192f9a084d2e8281ea2f80e82f3f811b64 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 9 Dec 2019 19:16:04 +1000 Subject: [PATCH 1/2] D3D12: Call VertexManagerBase initialize --- Source/Core/VideoBackends/D3D12/VertexManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/VideoBackends/D3D12/VertexManager.cpp b/Source/Core/VideoBackends/D3D12/VertexManager.cpp index ec733e72c0..bdf5fbe8e8 100644 --- a/Source/Core/VideoBackends/D3D12/VertexManager.cpp +++ b/Source/Core/VideoBackends/D3D12/VertexManager.cpp @@ -31,6 +31,9 @@ VertexManager::~VertexManager() = default; bool VertexManager::Initialize() { + if (!VertexManagerBase::Initialize()) + return false; + if (!m_vertex_stream_buffer.AllocateBuffer(VERTEX_STREAM_BUFFER_SIZE) || !m_index_stream_buffer.AllocateBuffer(INDEX_STREAM_BUFFER_SIZE) || !m_uniform_stream_buffer.AllocateBuffer(UNIFORM_STREAM_BUFFER_SIZE) || From e05bc33899cd715316aa305f74337a4c276879af Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 9 Dec 2019 19:16:15 +1000 Subject: [PATCH 2/2] Vulkan: Call VertexManagerBase initialize --- Source/Core/VideoBackends/Vulkan/VertexManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp index b6c7713baa..f3c948a60d 100644 --- a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp @@ -59,6 +59,9 @@ VertexManager::~VertexManager() bool VertexManager::Initialize() { + if (!VertexManagerBase::Initialize()) + return false; + m_vertex_stream_buffer = StreamBuffer::Create(VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, VERTEX_STREAM_BUFFER_SIZE); m_index_stream_buffer =