Бранимир Караџић 5 years ago
parent
commit
e5b1e7a645
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/bgfx_p.h

+ 1 - 3
src/bgfx_p.h

@@ -4155,9 +4155,7 @@ constexpr uint64_t kSortKeyComputeProgramMask  = uint64_t(BGFX_CONFIG_MAX_PROGRA
 				return BGFX_INVALID_HANDLE;
 				return BGFX_INVALID_HANDLE;
 			}
 			}
 
 
-			if (imageContainer.m_srgb) {
-				_flags |= BGFX_TEXTURE_SRGB;
-			}
+			_flags |= imageContainer.m_srgb ? BGFX_TEXTURE_SRGB : 0;
 
 
 			TextureHandle handle = { m_textureHandle.alloc() };
 			TextureHandle handle = { m_textureHandle.alloc() };
 			BX_WARN(isValid(handle), "Failed to allocate texture handle.");
 			BX_WARN(isValid(handle), "Failed to allocate texture handle.");