فهرست منبع

Fixed backwards error check in geometryc.

bx::open() returns true on success, so there
should be a negation in this error check.
Steinar V. Kaldager 10 سال پیش
والد
کامیت
b4919c85e8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tools/geometryc/geometryc.cpp

+ 1 - 1
tools/geometryc/geometryc.cpp

@@ -811,7 +811,7 @@ int main(int _argc, const char* _argv[])
 	PrimitiveArray primitives;
 	PrimitiveArray primitives;
 
 
 	bx::CrtFileWriter writer;
 	bx::CrtFileWriter writer;
-	if (bx::open(&writer, outFilePath) )
+	if (!bx::open(&writer, outFilePath) )
 	{
 	{
 		printf("Unable to open output file '%s'.", outFilePath);
 		printf("Unable to open output file '%s'.", outFilePath);
 		exit(EXIT_FAILURE);
 		exit(EXIT_FAILURE);