Skip to content

Commit 44049fc

Browse files
committed
Don't allow to run dedicated server without R1
1 parent b2118fe commit 44049fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/xrEngine/EngineAPI.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,9 @@ void CEngineAPI::CreateRendererList()
191191
hRenderR1 = std::make_unique<XRay::Module>("xrRender_R1");
192192

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

0 commit comments

Comments
 (0)