haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

Setting Image Resource to Render Target Created Image Has Glitch #61

Closed XANOZOID closed 1 year ago

XANOZOID commented 1 year ago

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)

  1. Create an image component and add it to the screen
  2. Create a kha render target and render images to it using g2.begin/end
  3. Set the image component resource variant equal to the new image
  4. repeat steps 2 and 3 a few times and you should see that there's an error

Media

image image

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

XANOZOID commented 1 year ago

This is not HaxeUI specific apparently.

ianharrigan commented 1 year ago

oh... dunno if thats a good or bad thing...