mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +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;
|
struct string_list *list = NULL;
|
||||||
char include_path[PATH_MAX];
|
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);
|
RARCH_ERR("Failed to open shader file: \"%s\".\n", path);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user