Browse Source

Typo fixes in image loading code. (#1074)

Dario Manesku 8 years ago
parent
commit
ccbb067746
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/common/image.cpp

+ 2 - 2
examples/common/image.cpp

@@ -90,7 +90,7 @@ namespace bgfx
 	{
 		static uint8_t pngMagic[] = { 0x89, 0x50, 0x4E, 0x47, 0x0d, 0x0a };
 
-		if (0 == bx::memCmp(_data, pngMagic, sizeof(pngMagic) ) )
+		if (0 != bx::memCmp(_data, pngMagic, sizeof(pngMagic) ) )
 		{
 			return NULL;
 		}
@@ -343,7 +343,7 @@ namespace bgfx
 		int comp = 0;
 		void* data = stbi_load_from_memory( (uint8_t*)_data, _size, (int*)&width, (int*)&height, &comp, 4);
 
-		if (NULL != data)
+		if (NULL == data)
 		{
 			return NULL;
 		}