Fix #12023, accidental disabling of the GL backend on non-Windows ARM platform caused by #12013.

This commit is contained in:
Henrik Rydgård 2019-05-08 23:41:46 +02:00
parent c3fab33354
commit 22d9ab4dbe
2 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@
#if PPSSPP_PLATFORM(UWP)
#include "GPU/D3D11/GPU_D3D11.h"
#else
#if !defined(_M_ARM64) && !defined(_M_ARM)
#if !PPSSPP_PLATFORM(WINDOWS) || (!defined(_M_ARM64) && !defined(_M_ARM))
#include "GPU/GLES/GPU_GLES.h"
#endif
#include "GPU/Vulkan/GPU_Vulkan.h"
@ -72,7 +72,8 @@ bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) {
SetGPU(new NullGPU());
break;
case GPUCORE_GLES:
#if !defined(_M_ARM64) && !defined(_M_ARM)
// Disable GLES on ARM Windows (but leave it enabled on other ARM platforms).
#if !PPSSPP_PLATFORM(WINDOWS) || (!defined(_M_ARM64) && !defined(_M_ARM))
SetGPU(new GPU_GLES(ctx, draw));
break;
#else

View File

@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/stringutil.h"
#if !defined(_M_ARM64) && !defined(_M_ARM)
#if !PPSSPP_PLATFORM(WINDOWS) || (!defined(_M_ARM64) && !defined(_M_ARM))
#if !PPSSPP_PLATFORM(UWP)
#include "gfx/gl_common.h"