projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aacea52
)
nouveau: fix nv30 line width
author
Ben Skeggs
<darktama@iinet.net.au>
Sun, 28 Jan 2007 11:55:35 +0000
(22:55 +1100)
committer
Ben Skeggs
<darktama@iinet.net.au>
Sun, 28 Jan 2007 11:55:35 +0000
(22:55 +1100)
src/mesa/drivers/dri/nouveau/nv30_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/nouveau/nv30_state.c
b/src/mesa/drivers/dri/nouveau/nv30_state.c
index 9b0d7425c819e034920189b2ab2d4c1a1d48c1f5..55b64637814d991ef030001acee79d9f556d1b1b 100644
(file)
--- a/
src/mesa/drivers/dri/nouveau/nv30_state.c
+++ b/
src/mesa/drivers/dri/nouveau/nv30_state.c
@@
-559,7
+559,7
@@
static void nv30LineWidth(GLcontext *ctx, GLfloat width)
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
GLubyte ubWidth;
-
CLAMPED_FLOAT_TO_UBYTE(ubWidth, width)
;
+
ubWidth = (GLubyte)(width * 8.0) & 0xFF
;
BEGIN_RING_CACHE(NvSub3D, NV30_TCL_PRIMITIVE_3D_LINE_WIDTH_SMOOTH, 1);
OUT_RING_CACHE(ubWidth);