How to refresh the texture for DirectX12? #8096
KADGang
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment 2 replies
-
I finally done it, I moved the code into my inner source file then it worked. Unbelievable 🤣 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a feature similar to an image viewer: the user enters the path to an image and I render it on the screen. I looked at the sample code for this. I plugged it into my source file and it worked perfectly. But when I tried to load another image, it crashed. What should I do in this situation?
My code:
I set three buttons in the window, for the first one and the second one, if you click it then it will load a image file for a texture.
It works very well at first time to load a image:
But when I click the button twice, it crashed.
Could you tell me how to implement this function correctly?
Beta Was this translation helpful? Give feedback.
All reactions