1
0
forked from mirrors/0ad

Removes ogl_WarnIfError from regular renderer code.

This was SVN commit r26850.
This commit is contained in:
vladislavbelov
2022-05-02 21:52:21 +00:00
parent a493a9f07f
commit 3ed4eaf247
28 changed files with 13 additions and 87 deletions
-8
View File
@@ -36,7 +36,6 @@ that of Atlas depending on commandline parameters.
#include "lib/secure_crt.h"
#include "lib/frequency_filter.h"
#include "lib/input.h"
#include "lib/ogl.h"
#include "lib/timer.h"
#include "lib/external_libraries/libsdl.h"
@@ -361,8 +360,6 @@ static void Frame()
g_Profiler2.IncrementFrameNumber();
PROFILE2_ATTR("%d", g_Profiler2.GetFrameNumber());
ogl_WarnIfError();
// get elapsed time
const double time = timer_Time();
g_frequencyFilter->Update(time);
@@ -420,12 +417,8 @@ static void Frame()
if (g_NetClient)
g_NetClient->Poll();
ogl_WarnIfError();
g_GUI->TickObjects();
ogl_WarnIfError();
if (g_RLInterface)
g_RLInterface->TryApplyMessage();
@@ -444,7 +437,6 @@ static void Frame()
g_UserReporter.Update();
g_Console->Update(realTimeSinceLastFrame);
ogl_WarnIfError();
if (g_SoundManager)
g_SoundManager->IdleTask();