mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Vulkan: Fix wrong error handling for missing file.
Apparently 0/1 is returned instead of 0/-1.
This commit is contained in:
parent
31a88f70e7
commit
2174f7d99b
@ -35,7 +35,7 @@ static bool read_shader_file(const char *path, vector<string> *output)
|
||||
struct string_list *list = NULL;
|
||||
char include_path[PATH_MAX];
|
||||
|
||||
if (filestream_read_file(path, (void**)&buf, &len) < 0)
|
||||
if (!filestream_read_file(path, (void**)&buf, &len))
|
||||
{
|
||||
RARCH_ERR("Failed to open shader file: \"%s\".\n", path);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user