Fixed compute program shader ref counting.

This commit is contained in:
Branimir Karadžić
2017-08-14 18:25:57 -07:00
parent 8c23402816
commit 07bd69c56c

View File

@@ -3283,6 +3283,7 @@ namespace bgfx
ProgramHandle handle = { idx };
ProgramRef& pr = m_programRef[handle.idx];
++pr.m_refCount;
shaderIncRef(pr.m_vsh);
return handle;
}