Browse Source

Strong negative points from failure

Kajetan Johannes Hammerle 5 days ago
parent
commit
75f3af72a1
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/VulkanWrapper.cpp

+ 5 - 5
src/VulkanWrapper.cpp

@@ -655,27 +655,27 @@ struct VulkanDummy {
         d.graphicsFamily = b.findQueueFamily(VK_QUEUE_GRAPHICS_BIT);
         if(d.graphicsFamily == Vulkan::INVALID_QUEUE_FAMILY) {
             LOG_INFO("> ... has no graphics family");
-            points = -1;
+            points = -1000;
         }
         d.presentFamily = b.findSurfaceQueueFamily();
         if(d.presentFamily == Vulkan::INVALID_QUEUE_FAMILY) {
             LOG_INFO("> ... has no present family");
-            points = -1;
+            points = -1000;
         }
         if(!b.hasExtension(VK_KHR_SWAPCHAIN_EXTENSION_NAME)) {
             LOG_INFO("> ... has no swapchain support");
-            points = -1;
+            points = -1000;
         }
         if(b.findSurfaceFormat(d.surfaceFormat, getSurfaceFormatPoints)) {
             LOG_INFO("> ... has no matching surface format");
-            points = -1;
+            points = -1000;
         } else {
             points += getSurfaceFormatPoints(d.surfaceFormat);
         }
         if(b.findSurfacePresentMode(
                d.presentMode, getSurfacePresentModePoints)) {
             LOG_INFO("> ... has no matching present mode");
-            points = -1;
+            points = -1000;
         } else {
             points += getSurfacePresentModePoints(d.presentMode);
         }