A bit of a hack to keep OpenGL from puking.
This commit is contained in:
parent
732e0b0bf8
commit
9f7bc6a9f9
|
@ -443,14 +443,22 @@ void KIWAY::CommonSettingsChanged()
|
||||||
}
|
}
|
||||||
#endif
|
#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 )
|
for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
|
||||||
{
|
{
|
||||||
KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
|
KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
|
||||||
|
|
||||||
if( frame )
|
if( frame && frame->IsActive() )
|
||||||
{
|
|
||||||
frame->CommonSettingsChanged();
|
frame->CommonSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for( unsigned i=0; i < KIWAY_PLAYER_COUNT; ++i )
|
||||||
|
{
|
||||||
|
KIWAY_PLAYER* frame = GetPlayerFrame( ( FRAME_T )i );
|
||||||
|
|
||||||
|
if( frame && !frame->IsActive() )
|
||||||
|
frame->CommonSettingsChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue