Browse Source

Added a few missing else's

master
Nico de Poel 11 months ago
parent
commit
a2a325b3ba
  1. 4
      FSR3UnityPlugin.cpp

4
FSR3UnityPlugin.cpp

@ -251,7 +251,7 @@ extern "C" bool UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API AMDUP_InitApi()
ffxFsr2GetInterfaceDX11(&s_Fsr2Interface, device, scratchBuffer, scratchBufferSize); ffxFsr2GetInterfaceDX11(&s_Fsr2Interface, device, scratchBuffer, scratchBufferSize);
return true; return true;
} }
if (s_GraphicsD3D12 != nullptr)
else if (s_GraphicsD3D12 != nullptr)
{ {
ID3D12Device* device = s_GraphicsD3D12->GetDevice(); ID3D12Device* device = s_GraphicsD3D12->GetDevice();
if (device == nullptr) 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); 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); textureDesc->image = (intptr_t)s_GraphicsD3D12->TextureFromNativeTexture((UnityTextureID)params->textureID);
} }

Loading…
Cancel
Save