Fixed uninitialized member variables.

This commit is contained in:
bkaradzic 2013-07-12 23:28:25 -07:00
parent f59ba947cb
commit 43a34ac38f
1 changed files with 2 additions and 0 deletions

View File

@ -1437,6 +1437,8 @@ namespace bgfx
Context()
: m_render(&m_frame[0])
, m_submit(&m_frame[1])
, m_numFreeDynamicIndexBufferHandles(0)
, m_numFreeDynamicVertexBufferHandles(0)
, m_dynamicIndexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS)
, m_dynamicVertexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_VERTEX_BUFFERS)
, m_indexBufferHandle(BGFX_CONFIG_MAX_INDEX_BUFFERS)