mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
A mission's $Environment Map is used as a cubemap without checking. Naming an ordinary 2D texture made OpenGL copy six faces out of a one-face image and crash when the mission started (issue #2245). Check the loaded bitmap with a new bm_is_cubemap(); if it is not a cubemap, warn, release it and build the generated environment map, as for a mission that names none. DX10 (BC7) DDS files carry no cube flag through the loader, so they are let through unchecked, as before. Co-authored-by: Dustinspace217 <[email protected]>