dri/nv10: Fix the CLAMP texture wrap mode.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 17 Sep 2010 03:29:48 +0000 (05:29 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 17 Sep 2010 03:34:32 +0000 (05:34 +0200)
src/mesa/drivers/dri/nouveau/nouveau_gldefs.h

index fbeed3baeabb127970bf82ac4fc68f6533df0b09..46ec14ec55dd15e575de9a723e54db26834ec2da 100644 (file)
@@ -228,12 +228,11 @@ nvgl_wrap_mode(unsigned wrap)
                return 0x1;
        case GL_MIRRORED_REPEAT:
                return 0x2;
+       case GL_CLAMP:
        case GL_CLAMP_TO_EDGE:
                return 0x3;
        case GL_CLAMP_TO_BORDER:
                return 0x4;
-       case GL_CLAMP:
-               return 0x5;
        default:
                assert(0);
        }