diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index acf6833bc..f92163715 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -364,7 +364,7 @@ void Text::setDrawMode(unsigned int mode) { if (_drawMode==mode) return; - if (_drawMode&3 != mode&3) + if ((_drawMode&3) != (mode&3)) { _drawMode=mode; if (_drawMode&TEXT_PIXMAP)