This commit is contained in:
Branimir Karadžić
2016-01-27 14:50:57 -08:00
parent db1c11d249
commit 8ab0a4eea5
5 changed files with 35 additions and 4 deletions

View File

@@ -1759,11 +1759,17 @@ BX_PRAGMA_DIAGNOSTIC_POP();
void overrideInternal(TextureHandle _handle, uintptr_t _ptr) BX_OVERRIDE
{
// Resource ref. counts might be messed up outside of bgfx.
// Disabling ref. count check once texture is overridden.
setGraphicsDebuggerPresent(true);
m_textures[_handle.idx].overrideInternal(_ptr);
}
uintptr_t getInternal(TextureHandle _handle) BX_OVERRIDE
{
// Resource ref. counts might be messed up outside of bgfx.
// Disabling ref. count check once texture is overridden.
setGraphicsDebuggerPresent(true);
return uintptr_t(m_textures[_handle.idx].m_ptr);
}