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 2019-12-09 19:47:34 +10:00 committed by GitHub
commit 6f274092b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

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

View File

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