mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Fix check for external glslc
This commit is contained in:
@@ -206,7 +206,7 @@ bool SpvCompilationSupported()
|
||||
if(!pipe)
|
||||
return false;
|
||||
|
||||
msleep(20);
|
||||
msleep(250);
|
||||
|
||||
int code = pclose(pipe);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user