From a2a325b3bafe4f257857c16c1b254fba2c1317e1 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Tue, 18 Mar 2025 13:49:27 +0100 Subject: [PATCH] Added a few missing else's --- FSR3UnityPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FSR3UnityPlugin.cpp b/FSR3UnityPlugin.cpp index df16636..1c01061 100644 --- a/FSR3UnityPlugin.cpp +++ b/FSR3UnityPlugin.cpp @@ -251,7 +251,7 @@ extern "C" bool UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API AMDUP_InitApi() ffxFsr2GetInterfaceDX11(&s_Fsr2Interface, device, scratchBuffer, scratchBufferSize); return true; } - if (s_GraphicsD3D12 != nullptr) + else if (s_GraphicsD3D12 != nullptr) { ID3D12Device* device = s_GraphicsD3D12->GetDevice(); if (device == nullptr) @@ -665,7 +665,7 @@ static void UNITY_INTERFACE_API OnSetTextureEvent(int eventID, void* data) { textureDesc->image = (intptr_t)s_GraphicsD3D11->TextureFromNativeTexture((UnityTextureID)params->textureID); } - if (s_GraphicsD3D12 != nullptr) + else if (s_GraphicsD3D12 != nullptr) { textureDesc->image = (intptr_t)s_GraphicsD3D12->TextureFromNativeTexture((UnityTextureID)params->textureID); }