render.cpp: Nuke previous scaler when releasing a render_texture in case it gets recycled later. This fixes occasional bad downcasts in debug builds when trying to bring up the tilemap viewer in certain drivers.

This commit is contained in:
AJR 2023-10-19 09:17:53 -04:00
parent 8fea166c6f
commit c662f2ec6b

View File

@ -353,6 +353,7 @@ void render_texture::release()
m_bitmap = nullptr;
m_sbounds.set(0, -1, 0, -1);
m_format = TEXFORMAT_ARGB32;
m_scaler = nullptr;
m_curseq = 0;
}