From 07bd69c56c2e3550a7bfd52e6306bdb7d52edbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 14 Aug 2017 18:25:57 -0700 Subject: [PATCH] Fixed compute program shader ref counting. --- src/bgfx_p.h | 1 + 1 file changed, 1 insertion(+) 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; }