From 2d33e6f2ad04177ab93cfca7a14325bdd394ecc7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 16 Nov 2005 09:28:09 +0000 Subject: [PATCH] From Mike Weiblen, support for ARB_texture_rectangle extension name. --- src/osg/TextureRectangle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {