Only update platforms on change

This commit is contained in:
jaburns
2020-10-28 23:00:11 -06:00
parent 07c6b80df9
commit 0843c23fe9
5 changed files with 13 additions and 92 deletions
+2
View File
@@ -203,6 +203,8 @@ static void engine_surface_from_lib_surface( struct Surface *surface, const stru
void update_dynamic_surface_list( void )
{
// TODO, this is way more expensive than it needs to be.
free( s_dynamic_surface_list );
s_dynamic_surface_count = 0;
s_dynamic_surface_list = NULL;