From edaf12a27944b46d3892a0ee15f18c067840b833 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sun, 4 Feb 2024 11:11:56 +0100 Subject: [PATCH] wip pass cleanup fixes --- sapp/clear-sapp.c | 2 +- sapp/offscreen-sapp.c | 2 +- sapp/triangle-sapp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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());