2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2016-12-10 15:53:39 -10:00
parent a9322292f5
commit 0384119bd4
4 changed files with 32 additions and 20 deletions

View File

@@ -304,7 +304,7 @@ TextView::TextView(ViewResources& res,
m_fontAtlas(font),
m_align(align)
{
if (VertexBufferPool<RenderGlyph>::bucketCapacity() < capacity)
if (size_t(VertexBufferPool<RenderGlyph>::bucketCapacity()) < capacity)
Log.report(logvisor::Fatal, "bucket overflow [%" PRISize "/%" PRISize "]",
capacity, VertexBufferPool<RenderGlyph>::bucketCapacity());
@@ -324,7 +324,7 @@ TextView::TextView(ViewResources& res,
auto vBufInfo = m_glyphBuf->getBufferInfo();
auto uBufInfo = m_viewVertBlockBuf->getBufferInfo();
boo::IGraphicsBuffer* uBufs[] = {uBufInfo.first};
size_t uBufOffs[] = {uBufInfo.second};
size_t uBufOffs[] = {size_t(uBufInfo.second)};
size_t uBufSizes[] = {sizeof(ViewBlock)};
boo::ITexture* texs[] = {m_fontAtlas.texture()};