delay subsystems, detach opengl load thread, post background color on init

This commit is contained in:
veclavtalica
2025-02-05 03:31:07 +03:00
parent 8110789b3a
commit cb88b4bcc5
2 changed files with 22 additions and 7 deletions

View File

@ -250,6 +250,8 @@ void audio_play(const char *path,
float panning)
{
if (!ctx.audio_initialized) {
SDL_InitSubSystem(SDL_INIT_AUDIO);
profile_start("audio initialization");
SDL_AudioSpec request, got;