Merge pull request #8517 from stenzek/fix-vulkan-d3d12

Fix Vulkan and D3D12 video backends crashing on boot
This commit is contained in:
Connor McLaughlin authored and GitHub committed 2019-12-09 19:47:34 +10:00
commit 6f274092b6
2 files changed
+6

No files matched your search

@@ -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) ||
@@ -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 =