mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #8517 from stenzek/fix-vulkan-d3d12
Fix Vulkan and D3D12 video backends crashing on boot
This commit is contained in:
commit
6f274092b6
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user