loader: Only check magic value from Icd on debug builds.
authorJon Ashburn <jon@lunarg.com>
Wed, 15 Apr 2015 19:34:33 +0000 (13:34 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:48:20 +0000 (17:48 +0800)
loader/loader.h

index 0ff9a59..b615989 100644 (file)
@@ -59,8 +59,10 @@ static inline void *loader_get_data(const void *obj)
 
 static inline void loader_init_data(void *obj, const void *data)
 {
+#ifdef DEBUG
     assert(valid_loader_magic_value(obj) &&
             "Incompatible ICD, first dword must be initialized to ICD_LOADER_MAGIC. See loader/README.md for details.");
+#endif
 
     loader_set_data(obj, data);
 }