mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Fixed warning.
This commit is contained in:
parent
b04af680ad
commit
d7e362f7dd
1 changed files with 2 additions and 2 deletions
|
@ -5433,7 +5433,7 @@ namespace bgfx { namespace gl
|
||||||
const uint32_t commandSize = 5 * sizeof(uint32_t);
|
const uint32_t commandSize = 5 * sizeof(uint32_t);
|
||||||
numDrawIndirect = UINT16_MAX == draw.m_numDrawIndirect ? vb.m_size/commandSize : draw.m_numDrawIndirect;
|
numDrawIndirect = UINT16_MAX == draw.m_numDrawIndirect ? vb.m_size/commandSize : draw.m_numDrawIndirect;
|
||||||
|
|
||||||
uint32_t args = draw.m_startDrawIndirect * commandSize;
|
uintptr_t args = draw.m_startDrawIndirect * commandSize;
|
||||||
GL_CHECK(glMultiDrawElementsIndirect(prim.m_type, indexFormat, (void*)args, numDrawIndirect, commandSize) );
|
GL_CHECK(glMultiDrawElementsIndirect(prim.m_type, indexFormat, (void*)args, numDrawIndirect, commandSize) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -5441,7 +5441,7 @@ namespace bgfx { namespace gl
|
||||||
const uint32_t commandSize = 4 * sizeof(uint32_t);
|
const uint32_t commandSize = 4 * sizeof(uint32_t);
|
||||||
numDrawIndirect = UINT16_MAX == draw.m_numDrawIndirect ? vb.m_size/commandSize : draw.m_numDrawIndirect;
|
numDrawIndirect = UINT16_MAX == draw.m_numDrawIndirect ? vb.m_size/commandSize : draw.m_numDrawIndirect;
|
||||||
|
|
||||||
uint32_t args = draw.m_startDrawIndirect * commandSize;
|
uintptr_t args = draw.m_startDrawIndirect * commandSize;
|
||||||
GL_CHECK(glMultiDrawArraysIndirect(prim.m_type, (void*)args, numDrawIndirect, commandSize) );
|
GL_CHECK(glMultiDrawArraysIndirect(prim.m_type, (void*)args, numDrawIndirect, commandSize) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue