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
-6
View File
@@ -635,8 +635,6 @@ void InitGraphics(const CmdLineArgs& args, int flags, const std::vector<CStr>& i
RunHardwareDetection();
ogl_WarnIfError();
// Optionally start profiler GPU timings automatically
// (By default it's only enabled by a hotkey, for performance/compatibility)
bool profilerGPUEnable = false;
@@ -670,8 +668,6 @@ void InitGraphics(const CmdLineArgs& args, int flags, const std::vector<CStr>& i
);
}
ogl_WarnIfError();
g_RenderingOptions.ReadConfigAndSetupHooks();
// create renderer
@@ -679,8 +675,6 @@ void InitGraphics(const CmdLineArgs& args, int flags, const std::vector<CStr>& i
InitInput();
ogl_WarnIfError();
// TODO: Is this the best place for this?
if (VfsDirectoryExists(L"maps/"))
CXeromyces::AddValidator(g_VFS, "map", "maps/scenario.rng");