Cleanup.
This commit is contained in:
parent
ce625e784e
commit
490ecf1602
@ -946,8 +946,10 @@ namespace bgfx { namespace mtl
|
||||
, m_depth(0)
|
||||
, m_numMips(0)
|
||||
{
|
||||
for(int i=0;i<BX_COUNTOF(m_ptrMips);++i)
|
||||
m_ptrMips[i] = NULL;
|
||||
for(uint32_t ii = 0; ii < BX_COUNTOF(m_ptrMips); ++ii)
|
||||
{
|
||||
m_ptrMips[ii] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void create(const Memory* _mem, uint64_t _flags, uint8_t _skip);
|
||||
@ -956,8 +958,10 @@ namespace bgfx { namespace mtl
|
||||
{
|
||||
MTL_RELEASE(m_ptr);
|
||||
MTL_RELEASE(m_ptrStencil);
|
||||
for(int i=0;i<m_numMips;++i)
|
||||
MTL_RELEASE(m_ptrMips[i]);
|
||||
for (uint32_t ii = 0; ii < m_numMips; ++ii)
|
||||
{
|
||||
MTL_RELEASE(m_ptrMips[ii]);
|
||||
}
|
||||
}
|
||||
|
||||
void update(
|
||||
|
@ -3816,10 +3816,9 @@ namespace bgfx { namespace mtl
|
||||
constantsChanged = true;
|
||||
}
|
||||
|
||||
if (isValid(currentProgram) && NULL != currentPso)
|
||||
if (isValid(currentProgram)
|
||||
&& NULL != currentPso)
|
||||
{
|
||||
ProgramMtl& program = m_program[currentProgram.idx];
|
||||
|
||||
uint32_t vertexUniformBufferSize = currentPso->m_vshConstantBufferSize;
|
||||
|
||||
if (0 != vertexUniformBufferSize)
|
||||
|
Loading…
x
Reference in New Issue
Block a user