diff --git a/src/bgfx_p.h b/src/bgfx_p.h index c646a36f8..9a8a2e470 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -3283,6 +3283,7 @@ namespace bgfx ProgramHandle handle = { idx }; ProgramRef& pr = m_programRef[handle.idx]; ++pr.m_refCount; + shaderIncRef(pr.m_vsh); return handle; }