mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Fix GetTextureByID not returning anything on non-DX11 (#297)
This commit is contained in:
parent
e2c801a2ac
commit
9eb5ff6136
1 changed files with 6 additions and 7 deletions
|
@ -932,13 +932,12 @@ namespace SohImGui {
|
|||
|
||||
ImTextureID GetTextureByID(int id) {
|
||||
#ifdef ENABLE_DX11
|
||||
if (impl.backend == Backend::DX11)
|
||||
{
|
||||
ImTextureID gfx_d3d11_get_texture_by_id(int id);
|
||||
return gfx_d3d11_get_texture_by_id(id);
|
||||
}
|
||||
#else
|
||||
return reinterpret_cast<ImTextureID>(id);
|
||||
if (impl.backend == Backend::DX11)
|
||||
{
|
||||
ImTextureID gfx_d3d11_get_texture_by_id(int id);
|
||||
return gfx_d3d11_get_texture_by_id(id);
|
||||
}
|
||||
#endif
|
||||
return reinterpret_cast<ImTextureID>(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue