mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Wrapped validation code for debug build only.
This commit is contained in:
parent
79f5f23b79
commit
637ab129d3
1 changed files with 6 additions and 0 deletions
|
@ -961,6 +961,7 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
BGFX_CHECK_MAIN_THREAD();
|
BGFX_CHECK_MAIN_THREAD();
|
||||||
|
|
||||||
|
#if BGFX_CONFIG_DEBUG
|
||||||
if (NULL != _mem)
|
if (NULL != _mem)
|
||||||
{
|
{
|
||||||
TextureInfo ti;
|
TextureInfo ti;
|
||||||
|
@ -971,6 +972,7 @@ namespace bgfx
|
||||||
, _mem->size
|
, _mem->size
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif // BGFX_CONFIG_DEBUG
|
||||||
|
|
||||||
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
||||||
const Memory* mem = alloc(size);
|
const Memory* mem = alloc(size);
|
||||||
|
@ -997,6 +999,7 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
BGFX_CHECK_MAIN_THREAD();
|
BGFX_CHECK_MAIN_THREAD();
|
||||||
|
|
||||||
|
#if BGFX_CONFIG_DEBUG
|
||||||
if (NULL != _mem)
|
if (NULL != _mem)
|
||||||
{
|
{
|
||||||
TextureInfo ti;
|
TextureInfo ti;
|
||||||
|
@ -1007,6 +1010,7 @@ namespace bgfx
|
||||||
, _mem->size
|
, _mem->size
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif // BGFX_CONFIG_DEBUG
|
||||||
|
|
||||||
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
||||||
const Memory* mem = alloc(size);
|
const Memory* mem = alloc(size);
|
||||||
|
@ -1033,6 +1037,7 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
BGFX_CHECK_MAIN_THREAD();
|
BGFX_CHECK_MAIN_THREAD();
|
||||||
|
|
||||||
|
#if BGFX_CONFIG_DEBUG
|
||||||
if (NULL != _mem)
|
if (NULL != _mem)
|
||||||
{
|
{
|
||||||
TextureInfo ti;
|
TextureInfo ti;
|
||||||
|
@ -1043,6 +1048,7 @@ namespace bgfx
|
||||||
, _mem->size
|
, _mem->size
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif // BGFX_CONFIG_DEBUG
|
||||||
|
|
||||||
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
uint32_t size = sizeof(uint32_t)+sizeof(TextureCreate);
|
||||||
const Memory* mem = alloc(size);
|
const Memory* mem = alloc(size);
|
||||||
|
|
Loading…
Reference in a new issue