From 6d8b78f523961e58d40131d3ea6ce2c63c8c00c5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 30 Nov 2018 17:45:54 -0800 Subject: [PATCH] Headless: Allow startup using NULL core. Or maybe we should have a dummy Draw context... --- GPU/GPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GPU.cpp b/GPU/GPU.cpp index 3a4f9a921eef..2fe380d3c117 100644 --- a/GPU/GPU.cpp +++ b/GPU/GPU.cpp @@ -61,7 +61,7 @@ bool GPU_IsReady() { } bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) { - _assert_(draw); + _assert_(draw || PSP_CoreParameter().gpuCore == GPUCORE_NULL); #if PPSSPP_PLATFORM(UWP) SetGPU(new GPU_D3D11(ctx, draw)); return true;