Sfoglia il codice sorgente

resource: wait for pr_frag to terminate before returning the errror

Daniele Bartolini 5 anni fa
parent
commit
c2013e9624
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/resource/shader_resource.cpp

+ 1 - 0
src/resource/shader_resource.cpp

@@ -1313,6 +1313,7 @@ namespace shader_resource_internal
 			ec = pr_vert.wait();
 			if (ec != 0)
 			{
+				pr_frag.wait();
 				delete_temp_files();
 				DATA_COMPILER_ASSERT(false
 					, _opts