[turbine/glfw] Fix programmatic shutdown to invoke shutdownHandler
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (push) Successful in 2m11s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (push) Successful in 2m11s
				
			This commit is contained in:
		@@ -123,6 +123,8 @@ void requestShutdown(Context &ctx, bool const force) noexcept {
 | 
				
			|||||||
	glfwSetWindowShouldClose(ctx.window, true);
 | 
						glfwSetWindowShouldClose(ctx.window, true);
 | 
				
			||||||
	if (force) {
 | 
						if (force) {
 | 
				
			||||||
		ctx.running = false;
 | 
							ctx.running = false;
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							ctx.running = ctx.shutdownHandler ? !ctx.shutdownHandler(ctx) : false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user