Assorted paranoia, get rid of an allocation in the audio loop

This commit is contained in:
Henrik Rydgård committed 2024-01-29 10:37:38 +01:00
1 parent 0170e8f081
commit 9979372a97
8 files changed
+21 -17

No files matched your search

+2
View File
@@ -81,6 +81,8 @@ void FrameTiming::PostSubmit() {
}
Draw::PresentMode ComputePresentMode(Draw::DrawContext *draw, int *interval) {
_assert_(draw);
Draw::PresentMode mode = Draw::PresentMode::FIFO;
if (draw->GetDeviceCaps().presentModesSupported & (Draw::PresentMode::IMMEDIATE | Draw::PresentMode::MAILBOX)) {