Mesa (master): dri/nv10: Fix the CLAMP texture wrap mode.
Francisco Jerez
currojerez at kemper.freedesktop.org
Fri Sep 17 03:35:57 UTC 2010
Module: Mesa
Branch: master
Commit: 82c4af33b0d860e27f4c2d3b3d2401c7549de355
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82c4af33b0d860e27f4c2d3b3d2401c7549de355
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Sep 17 05:29:48 2010 +0200
dri/nv10: Fix the CLAMP texture wrap mode.
---
src/mesa/drivers/dri/nouveau/nouveau_gldefs.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h b/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
index fbeed3b..46ec14e 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_gldefs.h
@@ -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);
}
More information about the mesa-commit
mailing list