Skip to content

Commit

Permalink
Don't allow to run dedicated server without R1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 10, 2018
1 parent b2118fe commit 44049fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xrEngine/EngineAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,9 @@ void CEngineAPI::CreateRendererList()
hRenderR1 = std::make_unique<XRay::Module>("xrRender_R1");

xr_vector<xr_token> modes;
// load only R1 for dedicated server,
// but if it's unavailable, then try other renderers
if (GEnv.isDedicatedServer && hRenderR1->exist())
if (GEnv.isDedicatedServer)
{
R_ASSERT2(hRenderR1->exist(), "Dedicated server needs xrRender_R1 to work");
modes.push_back(xr_token("renderer_r1", 0));
modes.push_back(xr_token(nullptr, -1));
vid_quality_token = std::move(modes);
Expand Down

0 comments on commit 44049fc

Please sign in to comment.