Skip to content

Commit 115bbba

Browse files
committed
Merge remote-tracking branch 'upstream/xd_dev' into linux
2 parents 041b737 + 9307acc commit 115bbba

File tree

98 files changed

+254
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+254
-165
lines changed

src/Layers/xrRenderDX10/dx10Texture.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,16 @@ ID3DBaseTexture* CRender::texture_load(LPCSTR fRName, u32& ret_msize, bool bStag
452452
#else
453453
D3DX10_IMAGE_LOAD_INFO LoadInfo;
454454
#endif
455-
// LoadInfo.FirstMipLevel = img_loaded_lod;
456455
LoadInfo.Width = IMG.Width;
457456
LoadInfo.Height = IMG.Height;
458457

458+
// x64 crash workaround
459+
#ifdef XR_X64
460+
LoadInfo.FirstMipLevel = img_loaded_lod;
461+
#else
459462
if (img_loaded_lod)
460-
{
461463
Reduce(LoadInfo.Width, LoadInfo.Height, IMG.MipLevels, img_loaded_lod);
462-
}
464+
#endif
463465

464466
// LoadInfo.Usage = D3D_USAGE_IMMUTABLE;
465467
if (bStaging)

src/Layers/xrRenderPC_R1/FStaticRender_RenderTarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CRenderTarget::CRenderTarget()
2828
param_color_map_influence = 0.0f;
2929
param_color_map_interpolate = 0.0f;
3030

31-
im_noise_time = 1 / 100.0f;
31+
im_noise_time = 1.f / 100.0f;
3232
im_noise_shift_w = 0;
3333
im_noise_shift_h = 0;
3434

src/Layers/xrRenderPC_R2/r2_rendertarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ CRenderTarget::CRenderTarget()
196196
param_noise_fps = 25.f;
197197
param_noise_scale = 1.f;
198198

199-
im_noise_time = 1 / 100.0f;
199+
im_noise_time = 1.f / 100.0f;
200200
im_noise_shift_w = 0;
201201
im_noise_shift_h = 0;
202202

src/Layers/xrRenderPC_R3/r3_rendertarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ CRenderTarget::CRenderTarget()
292292
param_noise_fps = 25.f;
293293
param_noise_scale = 1.f;
294294

295-
im_noise_time = 1 / 100.0f;
295+
im_noise_time = 1.f / 100.0f;
296296
im_noise_shift_w = 0;
297297
im_noise_shift_h = 0;
298298

src/Layers/xrRenderPC_R4/r4_rendertarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ CRenderTarget::CRenderTarget()
294294
param_noise_fps = 25.f;
295295
param_noise_scale = 1.f;
296296

297-
im_noise_time = 1 / 100.0f;
297+
im_noise_time = 1.f / 100.0f;
298298
im_noise_shift_w = 0;
299299
im_noise_shift_h = 0;
300300

src/xrCDB/ISpatial.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,13 @@ void ISpatial_NODE::_remove(ISpatial* S)
153153

154154
ISpatial_DB::ISpatial_DB(const char* name) :
155155
#ifdef CONFIG_PROFILE_LOCKS
156-
pcs(new Lock(MUTEX_PROFILE_ID(ISpatial_DB)))
156+
pcs(new Lock(MUTEX_PROFILE_ID(ISpatial_DB))),
157157
#else
158-
pcs(new Lock)
158+
pcs(new Lock),
159159
#endif // CONFIG_PROFILE_LOCKS
160+
rt_insert_object(nullptr), m_root(nullptr),
161+
m_bounds(0), q_result(nullptr)
160162
{
161-
m_root = NULL;
162163
xr_strcpy(Name, name);
163164
}
164165

src/xrEngine/EffectorPP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ENGINE_API CEffectorPP : public SBaseEffector
1313

1414
public:
1515
CEffectorPP(EEffectorPPType type, f32 lifeTime, bool free_on_remove = true);
16-
CEffectorPP() : bFreeOnRemove(true), fLifeTime(0.0f), bOverlap(true){};
16+
CEffectorPP() : bFreeOnRemove(true), fLifeTime(0.0f), bOverlap(true) {};
1717
virtual ~CEffectorPP();
1818
BENCH_SEC_SCRAMBLEVTBL1
1919
virtual BOOL Process(SPPInfo& PPInfo);

src/xrEngine/Stats.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ void CStats::Show()
163163
{
164164
font.SetColor(color_rgba(255, 16, 16, 191));
165165
font.OutSet(400, 0);
166+
166167
for (u32 it = (u32)_max(int(0), (int)errors.size() - g_ErrorLineCount); it < errors.size(); it++)
167168
font.OutNext("%s", errors[it].c_str());
168169
}

src/xrEngine/device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ class ENGINE_API CLoadScreenRenderer : public pureRender
332332
void start(bool b_user_input);
333333
void stop();
334334
virtual void OnRender();
335+
bool IsActive() const { return b_registered; }
335336

336337
bool b_registered;
337338
bool b_need_user_input;

src/xrGame/ActorEffector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ CCameraEffectorControlled::~CCameraEffectorControlled() { m_controller->SetCam(N
266266
BOOL CCameraEffectorControlled::Valid() { return m_controller->Valid(); }
267267
#define SND_MIN_VOLUME_FACTOR (0.1f)
268268

269-
SndShockEffector::SndShockEffector()
269+
SndShockEffector::SndShockEffector() : m_end_time(0), m_life_time(0)
270270
{
271271
m_snd_length = 0.0f;
272272
m_cur_length = 0.0f;
273273
m_stored_volume = -1.0f;
274-
m_actor = NULL;
274+
m_actor = nullptr;
275275
}
276276

277277
SndShockEffector::~SndShockEffector()

0 commit comments

Comments
 (0)