From 818b5230fb7c6152ea451822f5853db69fe13341 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 29 Mar 2008 09:59:23 +0000 Subject: [PATCH] From Sherman Wilcox with a little reorganisation from Robert Osfield, added test for 0 sized subloads, ignoring them to prevent a divide by zero error occuring on some buggy drivers. --- src/osgText/Font.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index d43de94bc..2abe0ea6a 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -861,6 +861,12 @@ void Font::Glyph::subload() const osg::notify(osg::WARN)<<"before Font::Glyph::subload(): detected OpenGL error '"<