Merge pull request #104616 from ibrahn/init-cmd-q-pending-and-gles3-skymatdata

Fix uninitialized member vars in CommandQueueMT and RasterizerSceneGLES3
This commit is contained in:
Rémi Verschelde
2025-03-28 17:30:37 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class CommandQueueMT {
uint32_t sync_awaiters = 0; uint32_t sync_awaiters = 0;
WorkerThreadPool::TaskID pump_task_id = WorkerThreadPool::INVALID_TASK_ID; WorkerThreadPool::TaskID pump_task_id = WorkerThreadPool::INVALID_TASK_ID;
uint64_t flush_read_ptr = 0; uint64_t flush_read_ptr = 0;
std::atomic<bool> pending; std::atomic<bool> pending{ false };
template <typename T, typename... Args> template <typename T, typename... Args>
_FORCE_INLINE_ void create_command(Args &&...p_args) { _FORCE_INLINE_ void create_command(Args &&...p_args) {

View File

@ -739,7 +739,7 @@ protected:
float baked_exposure = 1.0; float baked_exposure = 1.0;
//State to track when radiance cubemap needs updating //State to track when radiance cubemap needs updating
GLES3::SkyMaterialData *prev_material; GLES3::SkyMaterialData *prev_material = nullptr;
Vector3 prev_position = Vector3(0.0, 0.0, 0.0); Vector3 prev_position = Vector3(0.0, 0.0, 0.0);
float prev_time = 0.0f; float prev_time = 0.0f;
}; };