From 71601c6be3f596a132d802606fd828522d0a6e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 22 Dec 2025 20:23:18 -0800 Subject: [PATCH] Set BGFX_CONFIG_MAX_BONES to 1. --- examples/common/debugdraw/vs_debugdraw_fill.sc | 1 + examples/common/debugdraw/vs_debugdraw_fill_lit.sc | 1 + src/bgfx_shader.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/common/debugdraw/vs_debugdraw_fill.sc b/examples/common/debugdraw/vs_debugdraw_fill.sc index 41705b5a9..1317575ef 100644 --- a/examples/common/debugdraw/vs_debugdraw_fill.sc +++ b/examples/common/debugdraw/vs_debugdraw_fill.sc @@ -5,6 +5,7 @@ $input a_position, a_indices * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ +#define BGFX_CONFIG_MAX_BONES 2 #include void main() diff --git a/examples/common/debugdraw/vs_debugdraw_fill_lit.sc b/examples/common/debugdraw/vs_debugdraw_fill_lit.sc index 1cc0cd922..f91c61d34 100644 --- a/examples/common/debugdraw/vs_debugdraw_fill_lit.sc +++ b/examples/common/debugdraw/vs_debugdraw_fill_lit.sc @@ -6,6 +6,7 @@ $output v_view, v_world * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ +#define BGFX_CONFIG_MAX_BONES 2 #include void main() diff --git a/src/bgfx_shader.sh b/src/bgfx_shader.sh index 209b0951e..8fc7c0168 100644 --- a/src/bgfx_shader.sh +++ b/src/bgfx_shader.sh @@ -7,7 +7,7 @@ #define BGFX_SHADER_H_HEADER_GUARD #if !defined(BGFX_CONFIG_MAX_BONES) -# define BGFX_CONFIG_MAX_BONES 32 +# define BGFX_CONFIG_MAX_BONES 1 #endif // !defined(BGFX_CONFIG_MAX_BONES) #ifndef __cplusplus