fixes post imgui update

This commit is contained in:
Green Sky
2025-01-18 14:33:29 +01:00
parent 288d5a8adf
commit 5d779bb36c
6 changed files with 13 additions and 15 deletions

View File

@@ -69,7 +69,8 @@ struct TextureEntry {
rendered_this_frame = true;
assert(current_texture < textures.size());
if constexpr (sizeof(TextureType) == sizeof(uint64_t)) {
return reinterpret_cast<TextureType>(textures.at(current_texture));
//return reinterpret_cast<TextureType>(textures.at(current_texture));
return static_cast<TextureType>(static_cast<intptr_t>(textures.at(current_texture)));
} else if constexpr (sizeof(TextureType) == sizeof(uint32_t)) {
return reinterpret_cast<TextureType>(static_cast<uint32_t>(textures.at(current_texture)));
}