Skybox falls back to a mode that binds a null cubemap #14
Copy link
Copy link
Open
Labels
area: assetsLoading, textures, models, serializationLoading, textures, models, serializationbugSomething isn't workingSomething isn't workingcrashCauses a crash or hangCauses a crash or hangpriority: highSignificant impact, schedule soonSignificant impact, schedule soon
Milestone
Description
When a panorama load fails, Skybox logs a warning, switches m_mode to Gradient and still sets m_initialized (Skybox.cpp:110-116). Gradient mode never creates m_cubemapTexture, but Render only checks shader validity (:125) and the command lambda captures the null RefPtr into ctx->BindTexture at :163.
DebugLineRenderer has the same shape: Initialize returns early on shader failure before s_vertices is allocated (:32 vs :50), and DrawLine's first statement dereferences s_vertices with no null check (:67). Flush and Shutdown both check; DrawLine forgot.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: assetsLoading, textures, models, serializationLoading, textures, models, serializationbugSomething isn't workingSomething isn't workingcrashCauses a crash or hangCauses a crash or hangpriority: highSignificant impact, schedule soonSignificant impact, schedule soon
Activity