Explorar o código

Merge pull request #36357 from MateoMiccino/rendering_vulkan_vertexdescriptionkey_fix

rendering_vulkan: VertexDescriptionKey equal comparator was checking …
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
05e610b78c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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
 			}