From 6a24b5cb0e1b3e2d3cedd3a762964c963df29a70 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 23 Apr 2021 15:36:16 +0800 Subject: [PATCH] Correct the order of begin / end scene It fixes DirectX 9 driver warnings --- src/race/race_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/race/race_manager.cpp b/src/race/race_manager.cpp index 45da2cc8c..078f76efa 100644 --- a/src/race/race_manager.cpp +++ b/src/race/race_manager.cpp @@ -536,11 +536,11 @@ void RaceManager::startNextRace() if (type == PT_MAIN) { IrrlichtDevice* device = irr_driver->getDevice(); + device->getVideoDriver()->beginScene(true, true, + video::SColor(255,100,101,140)); GUIEngine::clearLoadingTips(); GUIEngine::renderLoading(true/*clearIcons*/, false/*launching*/, false/*update_tips*/); device->getVideoDriver()->endScene(); - device->getVideoDriver()->beginScene(true, true, - video::SColor(255,100,101,140)); } m_num_finished_karts = 0;