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
+5
View File
@@ -997,6 +997,11 @@ namespace bgfx { namespace d3d9
texture.m_height = _height;
}
void setInternal(TextureHandle _handle, uintptr_t _ptr) BX_OVERRIDE
{
BX_UNUSED(_handle, _ptr);
}
void destroyTexture(TextureHandle _handle) BX_OVERRIDE
{
m_textures[_handle.idx].destroy();