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

OS X fixes

This commit is contained in:
Jack Andersen
2015-11-29 17:41:53 -10:00
parent 11dfa963b5
commit 46916d6fac
2 changed files with 10 additions and 9 deletions

View File

@@ -437,7 +437,8 @@ void TextView::draw(boo::IGraphicsCommandQueue* gfxQ)
}
gfxQ->setShaderDataBinding(m_shaderBinding);
gfxQ->setDrawPrimitive(boo::Primitive::TriStrips);
gfxQ->drawInstances(0, 4, m_glyphs.size());
if (m_glyphs.size())
gfxQ->drawInstances(0, 4, m_glyphs.size());
}