diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 6a2d2f96c..e271e3460 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -157,7 +157,7 @@ osg::StateSet* Text::createStateSet() if (_shaderTechnique>GREYSCALE) { - defineList["SIGNED_DISTNACE_FIELD"] = osg::StateSet::DefinePair("1", osg::StateAttribute::ON); + defineList["SIGNED_DISTANCE_FIELD"] = osg::StateSet::DefinePair("1", osg::StateAttribute::ON); } #if 0 diff --git a/src/osgText/shaders/text_frag.cpp b/src/osgText/shaders/text_frag.cpp index 02c253100..4687a6bb6 100644 --- a/src/osgText/shaders/text_frag.cpp +++ b/src/osgText/shaders/text_frag.cpp @@ -1,11 +1,11 @@ char text_frag[] = "$OSG_GLSL_VERSION\n" "\n" - "#pragma import_defines( BACKDROP_COLOR, SHADOW, OUTLINE, SIGNED_DISTNACE_FIELD, TEXTURE_DIMENSION, GLYPH_DIMENSION)\n" + "#pragma import_defines( BACKDROP_COLOR, SHADOW, OUTLINE, SIGNED_DISTANCE_FIELD, TEXTURE_DIMENSION, GLYPH_DIMENSION)\n" "\n" "#ifdef GL_ES\n" " #extension GL_OES_standard_derivatives : enable\n" " #ifndef GL_OES_standard_derivatives\n" - " #undef SIGNED_DISTNACE_FIELD\n" + " #undef SIGNED_DISTANCE_FIELD\n" " #endif\n" "#endif\n" "\n" @@ -55,7 +55,7 @@ char text_frag[] = "$OSG_GLSL_VERSION\n" "const float GLYPH_DIMENSION = 32.0;\n" "#endif\n" "\n" - "#ifdef SIGNED_DISTNACE_FIELD\n" + "#ifdef SIGNED_DISTANCE_FIELD\n" "\n" "float distanceFromEdge(vec2 tc)\n" "{\n"