mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 13:43:33 +01: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()
|
bool VertexManager::Initialize()
|
||||||
{
|
{
|
||||||
|
if (!VertexManagerBase::Initialize())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!m_vertex_stream_buffer.AllocateBuffer(VERTEX_STREAM_BUFFER_SIZE) ||
|
if (!m_vertex_stream_buffer.AllocateBuffer(VERTEX_STREAM_BUFFER_SIZE) ||
|
||||||
!m_index_stream_buffer.AllocateBuffer(INDEX_STREAM_BUFFER_SIZE) ||
|
!m_index_stream_buffer.AllocateBuffer(INDEX_STREAM_BUFFER_SIZE) ||
|
||||||
!m_uniform_stream_buffer.AllocateBuffer(UNIFORM_STREAM_BUFFER_SIZE) ||
|
!m_uniform_stream_buffer.AllocateBuffer(UNIFORM_STREAM_BUFFER_SIZE) ||
|
||||||
|
@ -59,6 +59,9 @@ VertexManager::~VertexManager()
|
|||||||
|
|
||||||
bool VertexManager::Initialize()
|
bool VertexManager::Initialize()
|
||||||
{
|
{
|
||||||
|
if (!VertexManagerBase::Initialize())
|
||||||
|
return false;
|
||||||
|
|
||||||
m_vertex_stream_buffer =
|
m_vertex_stream_buffer =
|
||||||
StreamBuffer::Create(VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, VERTEX_STREAM_BUFFER_SIZE);
|
StreamBuffer::Create(VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, VERTEX_STREAM_BUFFER_SIZE);
|
||||||
m_index_stream_buffer =
|
m_index_stream_buffer =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user