UWP: Allow software renderer.

It can use the Direct3D 11 backend now for a while, so it should work on
UWP just fine.
This commit is contained in:
Unknown W. Brackets 2021-01-02 09:24:43 -08:00
parent 6a2b3f8f78
commit 66a6b27d78

View File

@ -60,12 +60,17 @@ bool GPU_IsReady() {
}
bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) {
_assert_(draw || PSP_CoreParameter().gpuCore == GPUCORE_NULL);
const auto &gpuCore = PSP_CoreParameter().gpuCore;
_assert_(draw || gpuCore == GPUCORE_NULL);
#if PPSSPP_PLATFORM(UWP)
SetGPU(new GPU_D3D11(ctx, draw));
if (gpuCore == GPUCORE_SOFTWARE) {
SetGPU(new SoftGPU(ctx, draw));
} else {
SetGPU(new GPU_D3D11(ctx, draw));
}
return true;
#else
switch (PSP_CoreParameter().gpuCore) {
switch (gpuCore) {
case GPUCORE_NULL:
SetGPU(new NullGPU());
break;