mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #3262 from Themaister/master
Vulkan: Fix wrong error handling for missing file.
This commit is contained in:
commit
36f9d3c66b
@ -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…
x
Reference in New Issue
Block a user