From 3c9d37622ca27ca45d560c29335143897eec9317 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 Jan 2025 13:46:27 +0200 Subject: [PATCH] thirdparty/sokol: allow `-cflags -D_SGL_DEFAULT_MAX_VERTICES=4194304` to customize how many vertices you can send through gg/sokol in a frame --- thirdparty/sokol/util/sokol_gl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thirdparty/sokol/util/sokol_gl.h b/thirdparty/sokol/util/sokol_gl.h index 9b7da3ee9..91b2ea20d 100644 --- a/thirdparty/sokol/util/sokol_gl.h +++ b/thirdparty/sokol/util/sokol_gl.h @@ -2314,8 +2314,12 @@ typedef struct { #define _SGL_DEFAULT_CONTEXT_POOL_SIZE (4) #define _SGL_DEFAULT_PIPELINE_POOL_SIZE (64) // __v_ start +#if !defined(_SGL_DEFAULT_MAX_VERTICES) #define _SGL_DEFAULT_MAX_VERTICES (1<<17) +#endif +#if !defined(_SGL_DEFAULT_MAX_COMMANDS) #define _SGL_DEFAULT_MAX_COMMANDS (1<<15) +#endif // __v_ end #define _SGL_SLOT_SHIFT (16) #define _SGL_MAX_POOL_SIZE (1<<_SGL_SLOT_SHIFT) -- 2.39.5