diff --git a/src/FSR3UnityPlugin.cpp b/src/FSR3UnityPlugin.cpp index de5124b..fe8ae1b 100644 --- a/src/FSR3UnityPlugin.cpp +++ b/src/FSR3UnityPlugin.cpp @@ -48,6 +48,12 @@ static void UNITY_INTERFACE_API OnGraphicsDeviceEvent(UnityGfxDeviceEventType ev { case kUnityGfxDeviceEventInitialize: { + if (s_Upscaler != nullptr) + { + // Avoid double initialization + break; + } + s_RendererType = s_Graphics->GetRenderer(); switch (s_RendererType) {