Fix float exception on processing empty bounding box for ' '. Refs #412

This commit is contained in:
baldurk
2016-11-02 14:43:45 +01:00
parent 50eaf793f1
commit 975b67d2ce
+4 -1
View File
@@ -897,7 +897,10 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
FontGlyphData *glyphData = (FontGlyphData *)m_TextGlyphUBO.Map();
for(int i = 0; i < numChars; i++)
glyphData[0].posdata = Vec4f();
glyphData[0].uvdata = Vec4f();
for(int i = 1; i < numChars; i++)
{
stbtt_bakedchar *b = chardata + i;