mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-19 07:37:12 +00:00
NTSC: fix rare crash in NTSC_SetVideoMode() after a VM restart
This commit is contained in:
@@ -2191,6 +2191,13 @@ _mono:
|
||||
void GenerateVideoTables( void );
|
||||
void GenerateBaseColors(baseColors_t pBaseNtscColors);
|
||||
|
||||
void NTSC_Destroy(void)
|
||||
{
|
||||
// After a VM restart, this will point to an old g_pFramebufferbits
|
||||
// - if it's now unmapped then this can cause a crash in NTSC_SetVideoMode()!
|
||||
g_pVideoAddress = 0;
|
||||
}
|
||||
|
||||
void NTSC_VideoInit( uint8_t* pFramebuffer ) // wsVideoInit
|
||||
{
|
||||
make_csbits();
|
||||
|
||||
Reference in New Issue
Block a user