A bit of a hack to keep OpenGL from puking.

This commit is contained in:
Jeff Young 2018-10-11 18:50:52 +01:00
parent 732e0b0bf8
commit 9f7bc6a9f9
1 changed files with 11 additions and 3 deletions

View File

@ -443,14 +443,22 @@ void KIWAY::CommonSettingsChanged()
}
#endif
// OK, this is a hack, but it keeps OpenGL from puking when updating
// something like grid settings when several OpenGL canvasses are open.
for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
{
KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
if( frame )
{
if( frame && frame->IsActive() )
frame->CommonSettingsChanged();
}
for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
{
KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
if( frame && !frame->IsActive() )
frame->CommonSettingsChanged();
}
}
}