mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-03 22:04:15 +00:00 
			
		
		
		
	Fix checks for Vulkan surface extension presence
This commit is contained in:
		
							parent
							
								
									2d10547266
								
							
						
					
					
						commit
						434238fcd4
					
				@ -254,7 +254,7 @@ GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance,
 | 
			
		||||
        return GLFW_FALSE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!_glfw.vk.extensions)
 | 
			
		||||
    if (!_glfw.vk.extensions[0])
 | 
			
		||||
    {
 | 
			
		||||
        _glfwInputError(GLFW_API_UNAVAILABLE,
 | 
			
		||||
                        "Vulkan: Window surface creation extensions not found");
 | 
			
		||||
@ -285,7 +285,7 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance,
 | 
			
		||||
        return VK_ERROR_INITIALIZATION_FAILED;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!_glfw.vk.extensions)
 | 
			
		||||
    if (!_glfw.vk.extensions[0])
 | 
			
		||||
    {
 | 
			
		||||
        _glfwInputError(GLFW_API_UNAVAILABLE,
 | 
			
		||||
                        "Vulkan: Window surface creation extensions not found");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user