Browse Source

rendering_vulkan: VertexDescriptionKey equal comparator was checking only the first element of his vector of VertexDescription

Mateo Dev .59 5 years ago
parent
commit
ab88d291b2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/vulkan/rendering_device_vulkan.h

+ 3 - 1
drivers/vulkan/rendering_device_vulkan.h

@@ -354,7 +354,9 @@ class RenderingDeviceVulkan : public RenderingDevice {
 					if (a.stride != b.stride) {
 						return false;
 					}
-					return a.frequency != b.frequency;
+					if (a.frequency != b.frequency) {
+						return false;
+					}
 				}
 				return true; //they are equal
 			}