You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This took me a while to track down. Passing SDL_WINDOW_HIDDEN to SDL_CreateWindow and calling SDL_ShowWindowafterFC_LoadFont seems to makes SDL_FontCache draw nothing, or at least seemingly. Or, in other words, the window must be not hidden when FC_LoadFont is called.
If this is intentional behaviour, then this should definitely be documented somewhere. Sorry if it is and I missed it.
The text was updated successfully, but these errors were encountered:
midn1
changed the title
SDL_FontCache draws nothing if font was created while the window was hidden
SDL_FontCache draws nothing if font was created while the window was hidden.
Mar 7, 2020
Certainly not intended, but it may be unavoidable. I expected that a hidden window would still offer a valid off-screen rendering context, but that seems not to be the case!
This took me a while to track down. Passing
SDL_WINDOW_HIDDEN
toSDL_CreateWindow
and callingSDL_ShowWindow
afterFC_LoadFont
seems to makes SDL_FontCache draw nothing, or at least seemingly. Or, in other words, the window must be not hidden whenFC_LoadFont
is called.If this is intentional behaviour, then this should definitely be documented somewhere. Sorry if it is and I missed it.
The text was updated successfully, but these errors were encountered: