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;