diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 6d0523e56..7f111ec6e 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -908,7 +908,7 @@ namespace bgfx GLint m_attributes[Attrib::Count]; // sparse GLint m_instanceData[BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT]; - GLint m_sampler[BGFX_CONFIG_MAX_TEXTURES]; + GLint m_sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS]; uint8_t m_numSamplers; ConstantBuffer* m_constantBuffer;