mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[host] dxgi: allow the backend to shutdown before freeing comRef globals
This commit is contained in:
		| @@ -964,6 +964,9 @@ static bool dxgi_deinit(void) | ||||
|   if (this->dup && *this->dup) | ||||
|     dxgi_releaseFrame(); | ||||
|  | ||||
|   // this MUST run before backend->free(). | ||||
|   comRef_free(); | ||||
|  | ||||
|   if (this->backend) | ||||
|   { | ||||
|     this->backend->free(); | ||||
| @@ -985,7 +988,6 @@ static bool dxgi_deinit(void) | ||||
|   } | ||||
|  | ||||
|   this->initialized = false; | ||||
|   comRef_free(); | ||||
|   return true; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae