Fixed warnings.

This commit is contained in:
bkaradzic 2012-12-31 20:52:48 -08:00
parent 58c0d54f59
commit fd35b10df6
2 changed files with 505 additions and 506 deletions

View file

@ -163,6 +163,7 @@ namespace bgfx
switch (type)
{
default:
case AttribType::Uint8:
{
uint8_t* packed = (uint8_t*)data;
@ -279,6 +280,7 @@ namespace bgfx
switch (type)
{
default:
case AttribType::Uint8:
{
uint8_t* packed = (uint8_t*)data;

View file

@ -750,9 +750,6 @@ int main(int _argc, const char* _argv[])
uint32_t positionOffset = decl.getOffset(bgfx::Attrib::Position);
uint32_t color0Offset = decl.getOffset(bgfx::Attrib::Color0);
uint32_t normalOffset = decl.getOffset(bgfx::Attrib::Normal);
uint32_t tangentOffset = decl.getOffset(bgfx::Attrib::Tangent);
uint32_t texcoord0Offset = decl.getOffset(bgfx::Attrib::TexCoord0);
uint32_t ii = 0;
for (GroupArray::const_iterator groupIt = groups.begin(); groupIt != groups.end(); ++groupIt, ++ii)
@ -883,7 +880,7 @@ int main(int _argc, const char* _argv[])
write(&writer, vertexData, numVertices, decl, indexData, numIndices, material, primitives);
}
printf("size: %d\n", writer.seek() );
printf("size: %d\n", uint32_t(writer.seek() ) );
writer.close();
delete [] indexData;
@ -897,7 +894,7 @@ int main(int _argc, const char* _argv[])
, double(triReorderElapsed)/bx::getHPFrequency()
, double(convertElapsed)/bx::getHPFrequency()
, num
, groups.size()
, uint32_t(groups.size() )
, numPrimitives
, numVertices
, numIndices