diff --git a/src/osg/StateSet.cpp b/src/osg/StateSet.cpp index db591c8b3..cb2837572 100644 --- a/src/osg/StateSet.cpp +++ b/src/osg/StateSet.cpp @@ -78,7 +78,7 @@ static const char* gl3_FragmentShader = { "out vec4 color;\n" "void main(void)\n" "{\n" - " color = vertexColor * texture2D(baseTexture, texCoord);\n" + " color = vertexColor * texture(baseTexture, texCoord);\n" "}\n" };