Skip to content

Conversation

@pifopi
Copy link
Contributor

@pifopi pifopi commented Oct 15, 2024

Hello !

I just wanted to report an issue with latest ImGUI. More specifically
ocornut/imgui@92b9498

I do know that my current solution means older ImGUI version wouldn't work anymore so I'm wondering what would be the best solution in your opinion (Check the type of ImTextureID and assign it accordingly ? Force the type of ImTextureID to be void* ?)

Thanks in advance

@pifopi pifopi marked this pull request as draft October 15, 2024 09:55
@peytonk132
Copy link
Contributor

I had the same problem and I made it a reinterpret_cast so it becomes reinterpret_cast<ImTextureID>(nullptr);

@pifopi
Copy link
Contributor Author

pifopi commented Oct 15, 2024

After thinking a bit more, using the {} constructor would make it work no matter what the underlying type is (no matter if the user pick a different type, is on a previous version or the current version). Also, it avoids relying on define

@pifopi pifopi marked this pull request as ready for review October 15, 2024 16:22
@ChrisThrasher
Copy link
Member

After thinking a bit more, using the {} constructor would make it work no matter what the underlying type is (no matter if the user pick a different type, is on a previous version or the current version). Also, it avoids relying on define

Sounds good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants