Trouble on render.set_render_target on Mac Sillicon

Hi

I’m using defold 1.11.1 beta. On MacOS Tahoe 26.0.1 (mac mini m4)

The problem is when calling:

render.draw(.. draw something ..)
render.set_render_target(some_target)
render.set_render_render_target(render.RENDER_TARGET_DEFAULT)

After drawing something on default render, if the render target is changed and then turned back to the default render, all previous draw call on the default render is missing and only black screen is left on the default render

Even when nothing is executed after changing the render target from default, the problem still persist.

The issue is only on Mac Silicon.

The problem does not happened in Linux, Android, Mac Intel.

Does anyone encounter the same issue?

Can you share a minimal repro case? I think I know what it is

1 Like

Thank you for the reply

Here is the minimal repo: defold_render_problem_1/render.render_script at main · arywindows/defold_render_problem_1 · GitHub

Please just uncomment the line below to see the problem

-- UNCOMMENT THIS TO SEE THE PROBLEM
-- render.set_render_target(self.test_target)
render.set_render_target(render.RENDER_TARGET_DEFAULT)

Thank you

1 Like

Hi here another update that i found:

The problem is when the macOS is using Vulkan. When switching to Vulkan in iOS (using .appmanifest), the iOS will also encounter the same problem

2 Likes

After updating to defold 1.11.1 stable the problem is fixed.

Thank you for the update

– edit –

Sorry turns out the problem still persist when using Vulkan renderer