Skip to content

Commit d66fbd5

Browse files
committed
Add guard to initRemixApi
1 parent 2c4ddf5 commit d66fbd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/D3D9RenderDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,15 @@ UBOOL UD3D9RenderDevice::SetRes(INT NewX, INT NewY, INT NewColorBytes, UBOOL Ful
899899

900900
// Initialize RTX Remix API
901901
if (!remixInterfaceInitialized){
902+
guard(remixapi::bridge_initRemixApi)
902903
remixapi_ErrorCode remixErr = remixapi::bridge_initRemixApi(&remixInterface);
903904
if (remixErr == REMIXAPI_ERROR_CODE_SUCCESS) {
904905
remixInterfaceInitialized = true;
905906
debugf(NAME_D3D9DrvRTX, TEXT("RTX Remix API initialized!"));
906907
} else {
907908
debugf(NAME_D3D9DrvRTX, TEXT("Failed to initialize RTX Remix API! Error: %d"), remixErr);
908909
}
910+
unguard;
909911
}
910912

911913
//Reset previous SwapBuffers status to okay

0 commit comments

Comments
 (0)