Browse Source

Correct condition wrongly converted to ERR_FAIL_COND_MSG

Fixes debugging of giprobes not working, likely other stuff
Juan Linietsky 5 years ago
parent
commit
54dfdd1cdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/vulkan/rendering_device_vulkan.cpp

+ 1 - 1
drivers/vulkan/rendering_device_vulkan.cpp

@@ -5977,7 +5977,7 @@ void RenderingDeviceVulkan::draw_list_draw(DrawListID p_list, bool p_use_indices
 
 
 		if (p_procedural_vertices > 0) {
 		if (p_procedural_vertices > 0) {
 #ifdef DEBUG_ENABLED
 #ifdef DEBUG_ENABLED
-			ERR_FAIL_COND_MSG(dl->validation.pipeline_vertex_format == INVALID_ID,
+			ERR_FAIL_COND_MSG(dl->validation.pipeline_vertex_format != INVALID_ID,
 					"Procedural vertices requested, but pipeline expects a vertex array.");
 					"Procedural vertices requested, but pipeline expects a vertex array.");
 #endif
 #endif
 			to_draw = p_procedural_vertices;
 			to_draw = p_procedural_vertices;