Merge pull request #3262 from Themaister/master

Vulkan: Fix wrong error handling for missing file.
This commit is contained in:
Twinaphex 2016-07-23 23:01:27 +02:00 committed by GitHub
commit 36f9d3c66b

View File

@ -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;