mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
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:
parent
6a2b3f8f78
commit
66a6b27d78
11
GPU/GPU.cpp
11
GPU/GPU.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user