mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
CPU: Panic process on memory alloc fail
This commit is contained in:
parent
667b11121c
commit
5ff44ebcf5
|
@ -6,6 +6,7 @@
|
|||
#include "cpu_core.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "common/log.h"
|
||||
|
||||
#include <climits>
|
||||
|
@ -276,10 +277,7 @@ void PGXP::Initialize()
|
|||
{
|
||||
Mem = static_cast<PGXP_value*>(std::calloc(PGXP_MEM_SIZE, sizeof(PGXP_value)));
|
||||
if (!Mem)
|
||||
{
|
||||
std::fprintf(stderr, "Failed to allocate PGXP memory\n");
|
||||
std::abort();
|
||||
}
|
||||
Panic("Failed to allocate PGXP memory");
|
||||
}
|
||||
|
||||
if (g_settings.gpu_pgxp_vertex_cache && !vertexCache)
|
||||
|
|
Loading…
Reference in a new issue