diff --git a/sapp/clear-sapp.c b/sapp/clear-sapp.c index ff3ac239..455d9579 100644 --- a/sapp/clear-sapp.c +++ b/sapp/clear-sapp.c @@ -11,7 +11,7 @@ sg_pass_action pass_action; void init(void) { sg_setup(&(sg_desc){ - .context = sapp_sgcontext(), + .environment = sapp_sgenvironment(), .logger.func = slog_func, }); pass_action = (sg_pass_action) { diff --git a/sapp/offscreen-sapp.c b/sapp/offscreen-sapp.c index bddfc8e4..9481bb8a 100644 --- a/sapp/offscreen-sapp.c +++ b/sapp/offscreen-sapp.c @@ -37,7 +37,7 @@ static struct { static void init(void) { sg_setup(&(sg_desc){ - .context = sapp_sgcontext(), + .environment = sapp_sgenvironment(), .logger.func = slog_func, }); __dbgui_setup(sapp_sample_count()); diff --git a/sapp/triangle-sapp.c b/sapp/triangle-sapp.c index fa4aa5e6..b833ed8b 100644 --- a/sapp/triangle-sapp.c +++ b/sapp/triangle-sapp.c @@ -18,7 +18,7 @@ static struct { static void init(void) { sg_setup(&(sg_desc){ - .context = sapp_sgcontext(), + .environment = sapp_sgenvironment(), .logger.func = slog_func, }); __dbgui_setup(sapp_sample_count());