From 7c3571b274e369d0839dbb2ab6c1d63b755eac9c Mon Sep 17 00:00:00 2001 From: Larpon Date: Thu, 30 Jun 2022 12:47:59 +0200 Subject: [PATCH] sokol: allow thirdparty window control (#14896) --- vlib/sokol/c/declaration.c.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vlib/sokol/c/declaration.c.v b/vlib/sokol/c/declaration.c.v index 74a40ed951..b41829fb31 100644 --- a/vlib/sokol/c/declaration.c.v +++ b/vlib/sokol/c/declaration.c.v @@ -57,7 +57,11 @@ $if gcboehm ? { } #include "sokol_v.pre.h" -#include "sokol_app.h" +// To allow for thirdparty initializing window / acceleration contexts +// but still be able to use sokol.gfx e.g. SDL+sokol_gfx +$if !no_sokol_app ? { + #include "sokol_app.h" +} #define SOKOL_IMPL #define SOKOL_NO_DEPRECATED #include "sokol_gfx.h"