mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:00:04 +00:00 
			
		
		
		
	Modified font atlas not build logging to only log once
This commit is contained in:
		
							parent
							
								
									f7a55ec85b
								
							
						
					
					
						commit
						2e973bf654
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1619,9 +1619,12 @@ void MapWidgetImpl::ImGuiCheckFonts() | |||
|       ImGui_ImplOpenGL3_CreateFontsTexture(); | ||||
|    } | ||||
| 
 | ||||
|    if (!model::ImGuiContextModel::Instance().font_atlas()->IsBuilt()) | ||||
|    static bool haveLogged = false; | ||||
|    if (!model::ImGuiContextModel::Instance().font_atlas()->IsBuilt() && | ||||
|        !haveLogged) | ||||
|    { | ||||
|       logger_->error("ImGui font atlas could not be built."); | ||||
|       haveLogged = true; | ||||
|    } | ||||
| 
 | ||||
|    imGuiFontsBuildCount_ = currentImGuiFontsBuildCount; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak