From ccbb0677461fa839cfbebc35bb7f6514fd7a6f80 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 12 Mar 2017 18:56:40 +0100 Subject: [PATCH] Typo fixes in image loading code. (#1074) --- examples/common/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common/image.cpp b/examples/common/image.cpp index f0c24977a..fe8ce8a7d 100644 --- a/examples/common/image.cpp +++ b/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; }