From b4919c85e89732dbd086014790d459cc153e1575 Mon Sep 17 00:00:00 2001 From: "Steinar V. Kaldager" Date: Sat, 13 Feb 2016 19:47:30 +0000 Subject: [PATCH] Fixed backwards error check in geometryc. bx::open() returns true on success, so there should be a negation in this error check. --- tools/geometryc/geometryc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/geometryc/geometryc.cpp b/tools/geometryc/geometryc.cpp index b5fc62af..7687f3c5 100644 --- a/tools/geometryc/geometryc.cpp +++ b/tools/geometryc/geometryc.cpp @@ -811,7 +811,7 @@ int main(int _argc, const char* _argv[]) PrimitiveArray primitives; bx::CrtFileWriter writer; - if (bx::open(&writer, outFilePath) ) + if (!bx::open(&writer, outFilePath) ) { printf("Unable to open output file '%s'.", outFilePath); exit(EXIT_FAILURE);