Adding ability to pass texture created outside of bgfx.

This commit is contained in:
Branimir Karadžić
2016-01-17 20:33:39 -08:00
parent 86a38a0160
commit 07e65283b0
12 changed files with 232 additions and 143 deletions

View File

@@ -2228,6 +2228,11 @@ namespace bgfx { namespace gl
release(mem);
}
void setInternal(TextureHandle _handle, uintptr_t _ptr) BX_OVERRIDE
{
BX_UNUSED(_handle, _ptr);
}
void destroyTexture(TextureHandle _handle) BX_OVERRIDE
{
m_textures[_handle.idx].destroy();