Fix issues
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenVulkano
|
||||
std::ifstream file(filePath, std::ios::ate | std::ios::binary);
|
||||
if (!file.is_open())
|
||||
{
|
||||
if (emptyOnMissing) return { 0 };
|
||||
if (emptyOnMissing) return {};
|
||||
throw std::runtime_error("Failed to open file '" + filePath + "'!");
|
||||
}
|
||||
const size_t fileSize = static_cast<size_t>(file.tellg());
|
||||
|
||||
Reference in New Issue
Block a user