diff --git a/src/osg/TextureRectangle.cpp b/src/osg/TextureRectangle.cpp index d51559ba6..66ac9db5a 100644 --- a/src/osg/TextureRectangle.cpp +++ b/src/osg/TextureRectangle.cpp @@ -121,7 +121,9 @@ void TextureRectangle::setImage(Image* image) void TextureRectangle::apply(State& state) const { - static bool s_rectangleSupported = isGLExtensionSupported(state.getContextID(),"GL_EXT_texture_rectangle") || isGLExtensionSupported(state.getContextID(),"GL_NV_texture_rectangle"); + static bool s_rectangleSupported = isGLExtensionSupported(state.getContextID(),"GL_ARB_texture_rectangle") + || isGLExtensionSupported(state.getContextID(),"GL_EXT_texture_rectangle") + || isGLExtensionSupported(state.getContextID(),"GL_NV_texture_rectangle"); if (!s_rectangleSupported) {