[Solved] URP 2D Only Working when FullScreen

Hey,

I’m using Unity 2020.1.4f1 and URP 8.2.0
Everything works great in the Editor when I run the game.

When I build the game (for MacOS), the rendering only works if the window is FullScreen, otherwise the screen is in the solid color with nothing else visible, while the game is still running normally.

If I move in and out of fullscreen mode, the problem appear and disappear.

If I change the camera renderer to a Forward setting, then it’s working properly in and out of fullscreen, but obviously with no lighting…
The game is also no longer working on WebGL since I updated to URP, but I’m assuming it’s the same issue.

The profiler and the console for a debug build show nothing wrong for macOS, while webGL is saying only that : [.WebGL-0x7fcfe393a000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete

What am I missing to get URP working in window mode ?

Thanks !

Using the camera stacking properly solved the issue.
No idea why it was working properly fullscreen without that ?