Fixed compute program.

This commit is contained in:
Branimir Karadžić 2015-08-24 15:40:11 -07:00
parent c93d8db523
commit 7acf2b2616
1 changed files with 2 additions and 0 deletions

View File

@ -2812,6 +2812,8 @@ namespace bgfx
pr.m_fsh = fsh;
pr.m_refCount = 1;
m_programHashMap.insert(stl::make_pair(uint32_t(_vsh.idx), handle) );
CommandBuffer& cmdbuf = getCommandBuffer(CommandBuffer::CreateProgram);
cmdbuf.write(handle);
cmdbuf.write(_vsh);