Fixed issue #249.

This commit is contained in:
Branimir Karadžić
2015-01-28 11:52:58 -08:00
parent a87b59a0c7
commit 37ec631ec7
3 changed files with 29 additions and 28 deletions

View File

@@ -710,7 +710,7 @@ namespace bgfx
BX_WARN(invalidHandle != m_key.m_program, "Program with invalid handle");
if (invalidHandle != m_key.m_program)
{
m_key.m_depth = _depth;
m_key.m_depth = (uint32_t)_depth;
m_key.m_view = _id;
m_key.m_seq = s_ctx->m_seq[_id] & s_ctx->m_seqMask[_id];
s_ctx->m_seq[_id]++;