mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	vulkan: fix macro variables
This commit is contained in:
		
							parent
							
								
									ff4a314022
								
							
						
					
					
						commit
						f1dc3d9728
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -90,11 +90,11 @@ static int vkresult_to_errno(VkResult result)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define VK_CHECK_RESULT(f)								\
 | 
					#define VK_CHECK_RESULT(f)								\
 | 
				
			||||||
{											\
 | 
					{											\
 | 
				
			||||||
	VkResult result = (f);								\
 | 
						VkResult _result = (f);								\
 | 
				
			||||||
	int res = -vkresult_to_errno(result);						\
 | 
						int _res = -vkresult_to_errno(_result);						\
 | 
				
			||||||
	if (result != VK_SUCCESS) {							\
 | 
						if (_result != VK_SUCCESS) {							\
 | 
				
			||||||
		spa_log_debug(s->log, "error: %d (%s)", result, spa_strerror(res));	\
 | 
							spa_log_debug(s->log, "error: %d (%s)", _result, spa_strerror(_res));	\
 | 
				
			||||||
		return res;								\
 | 
							return _res;								\
 | 
				
			||||||
	}										\
 | 
						}										\
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue