Skip to content

Commit

Permalink
thirdparty/sokol: allow -cflags -D_SGL_DEFAULT_MAX_VERTICES=4194304
Browse files Browse the repository at this point in the history
… to customize how many vertices you can send through gg/sokol in a frame
  • Loading branch information
spytheman committed Jan 6, 2025
1 parent d313355 commit 3c9d376
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thirdparty/sokol/util/sokol_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c9d376

Please sign in to comment.