mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 20:24:47 -04:00
fix shadow resolution changing causing a crash
operator delete[] was used instead of JKR_DELETE_ARRAY, which causes standard allocator to freak out
This commit is contained in:
@@ -1459,7 +1459,7 @@ void dDlst_shadowControl_c::init() {
|
||||
#else
|
||||
u32 buffer_size = GXGetTexBufferSize(size, size, 5, GX_DISABLE, 0);
|
||||
#endif
|
||||
delete mShadowTexData[i];
|
||||
JKR_DELETE_ARRAY(mShadowTexData[i]);
|
||||
mShadowTexData[i] = JKR_NEW_ARRAY_ARGS(u8, buffer_size, 0x20);
|
||||
|
||||
mShadowTexObj[i].reset();
|
||||
|
||||
Reference in New Issue
Block a user