Fix check for external glslc

This commit is contained in:
baldurk
2019-04-04 15:30:04 +01:00
parent 3cc2c37149
commit 043fcda299
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ bool SpvCompilationSupported()
if(!pipe)
return false;
msleep(20);
msleep(250);
int code = pclose(pipe);
+6 -4
View File
@@ -391,15 +391,17 @@ bool VulkanGraphicsTest::IsSupported()
return true;
static bool glslcChecked = false;
static bool glslcSupported = false;
if(!glslcChecked)
{
static bool glslcSupported = SpvCompilationSupported();
if(!glslcSupported)
return false;
glslcChecked = true;
glslcSupported = SpvCompilationSupported();
}
if(!glslcSupported)
return false;
return volkInitialize() == VK_SUCCESS;
}