Fix GetTextureByID not returning anything on non-DX11 (#297)
This commit is contained in:
@@ -932,13 +932,12 @@ namespace SohImGui {
|
|||||||
|
|
||||||
ImTextureID GetTextureByID(int id) {
|
ImTextureID GetTextureByID(int id) {
|
||||||
#ifdef ENABLE_DX11
|
#ifdef ENABLE_DX11
|
||||||
if (impl.backend == Backend::DX11)
|
if (impl.backend == Backend::DX11)
|
||||||
{
|
{
|
||||||
ImTextureID gfx_d3d11_get_texture_by_id(int id);
|
ImTextureID gfx_d3d11_get_texture_by_id(int id);
|
||||||
return gfx_d3d11_get_texture_by_id(id);
|
return gfx_d3d11_get_texture_by_id(id);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
return reinterpret_cast<ImTextureID>(id);
|
|
||||||
#endif
|
#endif
|
||||||
|
return reinterpret_cast<ImTextureID>(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user