Render target does not work if window is hidden


I’ve noticed the following:

on startup, I need to create a background texture by creating a texture
with “target” flag, and “renderCopy” an image onto it.

First scenario:

  1. the window+renderer is created with window flag “hidden”
  2. the background texture is created
  3. the window is shown
  4. the background texture is copied to the renderer
    ===> it doesn’t work: it does as if the whole background texture is 0
    (black and transparent)

Second scenario:
idem but there is no “hidden” flag
===> it works as expected

Question: it is intended behaviour or a bug ?

Happy coding