From 2174f7d99b53da90b6fdfd79a6f8c17b0119177c Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Sat, 23 Jul 2016 21:59:17 +0200 Subject: [PATCH] Vulkan: Fix wrong error handling for missing file. Apparently 0/1 is returned instead of 0/-1. --- gfx/drivers_shader/glslang_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_shader/glslang_util.cpp b/gfx/drivers_shader/glslang_util.cpp index 90aee21a75..ba7c81b642 100644 --- a/gfx/drivers_shader/glslang_util.cpp +++ b/gfx/drivers_shader/glslang_util.cpp @@ -35,7 +35,7 @@ static bool read_shader_file(const char *path, vector *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;