Headless: Allow startup using NULL core.

Or maybe we should have a dummy Draw context...
This commit is contained in:
Unknown W. Brackets 2018-11-30 17:45:54 -08:00
parent 636a7a2601
commit 6d8b78f523

View File

@ -61,7 +61,7 @@ bool GPU_IsReady() {
} }
bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) { bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) {
_assert_(draw); _assert_(draw || PSP_CoreParameter().gpuCore == GPUCORE_NULL);
#if PPSSPP_PLATFORM(UWP) #if PPSSPP_PLATFORM(UWP)
SetGPU(new GPU_D3D11(ctx, draw)); SetGPU(new GPU_D3D11(ctx, draw));
return true; return true;