You can update / change the image resource to update the current image any number of times without encountering bugs.
Current Behavior
Sometimes creating an image with a RenderTarget based kha.Image you get graphical anomalies.
Possible Solution
Not necessarily a possible solution, but I made sure the Image provided to the image resource was not showing graphical issues by drawing it manually and it wasn't broken like the HaxeUI Image was.
Steps to Reproduce (for bugs)
Create an image component and add it to the screen
Create a kha render target and render images to it using g2.begin/end
Set the image component resource variant equal to the new image
repeat steps 2 and 3 a few times and you should see that there's an error
Media
Test app / minimal test case
Will create if the above information doesn't reveal the issue.
Context
Trying to have a section of the GUI display a small version of the map.
Your Environment
Version used: Latest
Environment name and version (e.g. Chrome 39, node.js 5.4): Kha debug mode (I believe Electron)
Operating System and version (desktop or mobile): Windows 10
Expected Behavior
You can update / change the image resource to update the current image any number of times without encountering bugs.
Current Behavior
Sometimes creating an image with a RenderTarget based
kha.Image
you get graphical anomalies.Possible Solution
Not necessarily a possible solution, but I made sure the Image provided to the image resource was not showing graphical issues by drawing it manually and it wasn't broken like the HaxeUI Image was.
Steps to Reproduce (for bugs)
Media
Test app / minimal test case
Will create if the above information doesn't reveal the issue.
Context
Trying to have a section of the GUI display a small version of the map.
Your Environment