mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Abort loading file if we didn't get a handle, and shorten retry period.
This commit is contained in:
@@ -304,12 +304,13 @@ void ImageViewer::RefreshFile()
|
||||
f = FileIO::fopen(m_Filename.c_str(), "rb");
|
||||
if(f)
|
||||
break;
|
||||
Threading::Sleep(400);
|
||||
Threading::Sleep(40);
|
||||
}
|
||||
|
||||
if(!f)
|
||||
{
|
||||
RDCERR("Couldn't open file! Exclusive lock elsewhere?");
|
||||
return;
|
||||
}
|
||||
|
||||
FetchTexture texDetails;
|
||||
|
||||
Reference in New Issue
Block a user