|
11 | 11 |
|
12 | 12 | extern xr_token* vid_quality_token; |
13 | 13 |
|
| 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 | + |
14 | 19 | ////////////////////////////////////////////////////////////////////// |
15 | 20 | // Construction/Destruction |
16 | 21 | ////////////////////////////////////////////////////////////////////// |
@@ -51,10 +56,6 @@ bool is_enough_address_space_available() |
51 | 56 |
|
52 | 57 | void CEngineAPI::InitializeNotDedicated() |
53 | 58 | { |
54 | | - constexpr pcstr r2_name = "xrRender_R2"; |
55 | | - constexpr pcstr r3_name = "xrRender_R3"; |
56 | | - constexpr pcstr r4_name = "xrRender_R4"; |
57 | | - |
58 | 59 | if (psDeviceFlags.test(rsR4)) |
59 | 60 | { |
60 | 61 | // try to initialize R4 |
@@ -100,7 +101,6 @@ void CEngineAPI::InitializeNotDedicated() |
100 | 101 |
|
101 | 102 | void CEngineAPI::InitializeRenderers() |
102 | 103 | { |
103 | | - constexpr pcstr r1_name = "xrRender_R1"; |
104 | 104 |
|
105 | 105 | #ifndef DEDICATED_SERVER |
106 | 106 | InitializeNotDedicated(); |
@@ -205,10 +205,6 @@ void CEngineAPI::CreateRendererList() |
205 | 205 | bool bSupports_r3 = false; |
206 | 206 | bool bSupports_r4 = false; |
207 | 207 |
|
208 | | - constexpr pcstr r2_name = "xrRender_R2"; |
209 | | - constexpr pcstr r3_name = "xrRender_R3"; |
210 | | - constexpr pcstr r4_name = "xrRender_R4"; |
211 | | - |
212 | 208 | hRender = std::make_unique<XRay::Module>(); |
213 | 209 |
|
214 | 210 | if (strstr(Core.Params, "-perfhud_hack")) |
|
0 commit comments