Fixed crash when starting up and no proper application config was available.
This commit is contained in:
		
							parent
							
								
									0f9f9d6283
								
							
						
					
					
						commit
						a977698336
					
				| @ -117,6 +117,8 @@ struct Viewport { | ||||
|   sg_image depth_image = {}; | ||||
|   int size[2] = {400, 400}; | ||||
| 
 | ||||
|   Viewport() { Resize(size[0], size[1]); } | ||||
| 
 | ||||
|   void Resize(int width, int height) { | ||||
|     width = width < 1 ? 1 : width; | ||||
|     height = height < 1 ? 1 : height; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Martin Felis
						Martin Felis