Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating images with render targets results in no graphics displayed #62

Open
XANOZOID opened this issue Apr 28, 2023 · 3 comments
Open

Comments

@XANOZOID
Copy link

This essentially effects button icons, images, anything like that. I have set up a test project where it initially creates a render target and sets the haxeui data to it. It appears to render. It sets the icon of a button to the image and it sets the resource of an image to the render target. However, if you press the button it basically repeats the exact same thing but any subsequent presses of the button will render the graphics as nothing.

Expected Behavior

Updating the icon/image-resource should not cause the graphics to null.

Current Behavior

Pressing the button after the initial load causes the graphics to become null.

Steps to Reproduce (for bugs)

Code included.

  1. Create a render target, set image resource to it
  2. Repeat this step in an event, like a button press

Context

This may be causing problems elsewhere with Kha as I'm seeing other graphical glitches in my main app that seem somewhat similar in concept but not directly related HaxeUI. But for HaxeUI we should expect to be able to change the graphics of images or icons without them clearing.

Your Environment

  • Version used: latest
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Chrome Debugger
  • Operating System and version (desktop or mobile): Windows 10
@XANOZOID
Copy link
Author

Here's a test app
testapp.zip

@XANOZOID
Copy link
Author

XANOZOID commented Apr 29, 2023

I tried creating a simple Kha app that effectively tested for the same thing, it did not result in the same problem. This test app tests for resetting the render targets on any key input found. I tried this test with and without haxeui active - when haxeui was active it did not display the first rendered tile.

Without haxeui
kha_simple.zip

With haxeui
bug_with_haxeui.zip

Still not certain what causes this issue though. Seems very particular/specific. Does not seem to be related to overlapping begins/ends though.

@XANOZOID
Copy link
Author

3 new pieces of intel:

  • The bug does not exist if you don't .renderTo g2
  • The bug does not exist if there's no haxeui images/icons on the component with renderTargets
  • The bug does not show if the component with the images isn't being rendered

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

No branches or pull requests

1 participant