Vulkan: Fix wrong error handling for missing file.

Apparently 0/1 is returned instead of 0/-1.
This commit is contained in:
Hans-Kristian Arntzen 2016-07-23 21:59:17 +02:00
parent 31a88f70e7
commit 2174f7d99b

View File

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