From 637ab129d3e5d8a8a57c34eb9f0dbcad4a576968 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sun, 6 Jan 2013 12:42:50 -0800 Subject: [PATCH] Wrapped validation code for debug build only. --- src/bgfx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index f6dbe081..20a6d63e 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -961,6 +961,7 @@ namespace bgfx { BGFX_CHECK_MAIN_THREAD(); +#if BGFX_CONFIG_DEBUG if (NULL != _mem) { TextureInfo ti; @@ -971,6 +972,7 @@ namespace bgfx , _mem->size ); } +#endif // BGFX_CONFIG_DEBUG uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate); const Memory* mem = alloc(size); @@ -997,6 +999,7 @@ namespace bgfx { BGFX_CHECK_MAIN_THREAD(); +#if BGFX_CONFIG_DEBUG if (NULL != _mem) { TextureInfo ti; @@ -1007,6 +1010,7 @@ namespace bgfx , _mem->size ); } +#endif // BGFX_CONFIG_DEBUG uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate); const Memory* mem = alloc(size); @@ -1033,6 +1037,7 @@ namespace bgfx { BGFX_CHECK_MAIN_THREAD(); +#if BGFX_CONFIG_DEBUG if (NULL != _mem) { TextureInfo ti; @@ -1043,6 +1048,7 @@ namespace bgfx , _mem->size ); } +#endif // BGFX_CONFIG_DEBUG uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate); const Memory* mem = alloc(size);