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

CacheToTexture Never Updates Cached Textures? #68

Open
kklouzal opened this issue Jan 9, 2018 · 1 comment
Open

CacheToTexture Never Updates Cached Textures? #68

kklouzal opened this issue Jan 9, 2018 · 1 comment

Comments

@kklouzal
Copy link
Contributor

kklouzal commented Jan 9, 2018

In writing my own renderer it seems as though cached textures never get updated?
I am able to successfully cache a texture and the renderer does draw the cached texture, however, when a control changes, the cached texture never gets updated.
I assume this should happen through:
void UpdateControlCacheTexture(CacheHandle control) { printf("Update"); }
However the function is never called.
Is there something specific that needs to be done to allow the updating to happen?

@billyquith
Copy link
Owner

It does need looking at. There is another issue open #27. It's only really necessary for the colour pickers. However, I have added a software renderer and a pixel buffer target, so this may be a better solution. This is a more efficient solution as well as the colour pickers draw a rectangle for each pixel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants