Skip to content

Commit

Permalink
Fix a crash in renderer_d3d12.cpp
Browse files Browse the repository at this point in the history
If querying the debug1 interface fails, don't attempt to release it.
  • Loading branch information
kalmard0 authored Aug 31, 2024
1 parent 4fb2edf commit be88ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,9 @@ namespace bgfx { namespace d3d12
{
debug1->SetEnableSynchronizedCommandQueueValidation(false);
}
}

DX_RELEASE(debug1, 1);
DX_RELEASE(debug1, 1);
}
}
#endif // BX_PLATFORM_WINDOWS
}
Expand Down

0 comments on commit be88ad0

Please sign in to comment.