Fixed 64-bit warning.

This commit is contained in:
Branimir Karadžić 2014-09-16 20:51:55 -07:00
parent e55912afb7
commit 8f09044ea4

View file

@ -532,7 +532,7 @@ namespace bgfx
for (uint32_t ii = 0, num = g_caps.maxFBAttachments; ii < num; ++ii)
{
fragMem[ii] = makeRef(mem[ii].data, mem[ii].size);
fragMem[ii] = makeRef(mem[ii].data, uint32_t(mem[ii].size) );
}
}
else if (RendererType::Direct3D11 == g_caps.rendererType)
@ -553,7 +553,7 @@ namespace bgfx
for (uint32_t ii = 0, num = g_caps.maxFBAttachments; ii < num; ++ii)
{
fragMem[ii] = makeRef(mem[ii].data, mem[ii].size);
fragMem[ii] = makeRef(mem[ii].data, uint32_t(mem[ii].size) );
}
}
else if (RendererType::OpenGLES == g_caps.rendererType
@ -575,7 +575,7 @@ namespace bgfx
for (uint32_t ii = 0, num = g_caps.maxFBAttachments; ii < num; ++ii)
{
fragMem[ii] = makeRef(mem[ii].data, mem[ii].size);
fragMem[ii] = makeRef(mem[ii].data, uint32_t(mem[ii].size) );
}
}