Skip to content

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

@XANOZOID

Description

@XANOZOID

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions