GPUDevice: Don't recreate device on SW switch in GLES:

This commit is contained in:
Stenzek
2023-09-23 13:40:51 +10:00
parent 2a5b3aa695
commit 9517638bcb
3 changed files with 14 additions and 6 deletions

View File

@ -1954,7 +1954,8 @@ bool System::CreateGPU(GPURenderer renderer, bool is_switching)
{
const RenderAPI api = Settings::GetRenderAPIForRenderer(renderer);
if (!g_gpu_device || (renderer != GPURenderer::Software && g_gpu_device->GetRenderAPI() != api))
if (!g_gpu_device ||
(renderer != GPURenderer::Software && !GPUDevice::IsSameRenderAPI(g_gpu_device->GetRenderAPI(), api)))
{
if (g_gpu_device)
{