Skip to content

Commit 6d4d007

Browse files
committed
Point renderer names in the top of file globally
1 parent 4b0e518 commit 6d4d007

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/xrEngine/EngineAPI.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
extern xr_token* vid_quality_token;
1313

14+
constexpr pcstr r1_name = "xrRender_R1";
15+
constexpr pcstr r2_name = "xrRender_R2";
16+
constexpr pcstr r3_name = "xrRender_R3";
17+
constexpr pcstr r4_name = "xrRender_R4";
18+
1419
//////////////////////////////////////////////////////////////////////
1520
// Construction/Destruction
1621
//////////////////////////////////////////////////////////////////////
@@ -51,10 +56,6 @@ bool is_enough_address_space_available()
5156

5257
void CEngineAPI::InitializeNotDedicated()
5358
{
54-
constexpr pcstr r2_name = "xrRender_R2";
55-
constexpr pcstr r3_name = "xrRender_R3";
56-
constexpr pcstr r4_name = "xrRender_R4";
57-
5859
if (psDeviceFlags.test(rsR4))
5960
{
6061
// try to initialize R4
@@ -100,7 +101,6 @@ void CEngineAPI::InitializeNotDedicated()
100101

101102
void CEngineAPI::InitializeRenderers()
102103
{
103-
constexpr pcstr r1_name = "xrRender_R1";
104104

105105
#ifndef DEDICATED_SERVER
106106
InitializeNotDedicated();
@@ -205,10 +205,6 @@ void CEngineAPI::CreateRendererList()
205205
bool bSupports_r3 = false;
206206
bool bSupports_r4 = false;
207207

208-
constexpr pcstr r2_name = "xrRender_R2";
209-
constexpr pcstr r3_name = "xrRender_R3";
210-
constexpr pcstr r4_name = "xrRender_R4";
211-
212208
hRender = std::make_unique<XRay::Module>();
213209

214210
if (strstr(Core.Params, "-perfhud_hack"))

0 commit comments

Comments
 (0)