Disabling render.clear does not work in the HTML5 build

I want to make it so that the previous frame is not erased, and the new one is drawn on top. I commented out render.clear in my own render_script - and it works when I run ctrl+b, but when I build the HTML5 version, it doesn’t work. What could be the reason?

Make sure you disable cache

what cache? where to disable?

I mean browser cache. You can open Developer Tools (F12) and tick disable cache at Network tab. But not sure what your case is.

it doesn’t help, I see that I have the current version running

Please submit a bug report in our main repository on GitHub. Please also include a minimal project where this can be reproduced.

done Disabling render.clear does not work in the HTML5 build · Issue #9313 · defold/defold · GitHub

1 Like

I solved the problem using render target, as suggested by aglitchman in issue comments

3 Likes