mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	vkd3d: Treat negative viewport widths as invalid.
Negative widths are not supported in Vulkan.
This commit is contained in:
		
				
					committed by
					
						 Alexandre Julliard
						Alexandre Julliard
					
				
			
			
				
	
			
			
			
						parent
						
							5d724abc96
						
					
				
				
					commit
					a4a95aa950
				
			
				
				Notes:
				
					Alexandre Julliard
				
				2023-04-20 22:57:49 +02:00 
			
			Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/167
| @@ -3963,7 +3963,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_RSSetViewports(ID3D12GraphicsCo | |||||||
|         vk_viewports[i].minDepth = viewports[i].MinDepth; |         vk_viewports[i].minDepth = viewports[i].MinDepth; | ||||||
|         vk_viewports[i].maxDepth = viewports[i].MaxDepth; |         vk_viewports[i].maxDepth = viewports[i].MaxDepth; | ||||||
|  |  | ||||||
|         if (!vk_viewports[i].width) |         if (vk_viewports[i].width <= 0.0f) | ||||||
|         { |         { | ||||||
|             /* Vulkan does not support width <= 0 */ |             /* Vulkan does not support width <= 0 */ | ||||||
|             FIXME_ONCE("Setting invalid viewport %u to zero height.\n", i); |             FIXME_ONCE("Setting invalid viewport %u to zero height.\n", i); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user