Fix rectangular textures on i830 - well texrect at least
authorDave Airlie <airliedfreedesktop.org>
Tue, 8 Jun 2004 10:21:59 +0000 (10:21 +0000)
committerDave Airlie <airliedfreedesktop.org>
Tue, 8 Jun 2004 10:21:59 +0000 (10:21 +0000)
src/mesa/drivers/dri/i830/i830_tex.c

index d4a70246b0c65c392149850603cef5bbdc8df031..2afa05ab5497399e559651b05dd9c76343d51aef 100644 (file)
@@ -281,7 +281,7 @@ static void i830TexParameter( GLcontext *ctx, GLenum target,
    if (!t)
       return;
 
-   if ( target != GL_TEXTURE_2D )
+   if ( target != GL_TEXTURE_2D && target != GL_TEXTURE_RECTANGLE_NV )
       return;
 
    /* Can't do the update now as we don't know whether to flush