summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateo Dev .59 <mateomiccino@gmail.com>2020-02-19 10:01:19 -0300
committerMateo Dev .59 <mateomiccino@gmail.com>2020-02-19 10:01:19 -0300
commitab88d291b250b308d694f10aa8298a8c38e0ba2d (patch)
treeca56b25f661d854f2daab411de8cbb7256f45240
parent35c1ce2ba6c5b983bb6e768580ea9a3430e9651d (diff)
rendering_vulkan: VertexDescriptionKey equal comparator was checking only the first element of his vector of VertexDescription
-rw-r--r--drivers/vulkan/rendering_device_vulkan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.h b/drivers/vulkan/rendering_device_vulkan.h
index 05534e75ef..30c10e922e 100644
--- a/drivers/vulkan/rendering_device_vulkan.h
+++ b/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
}