projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a7477
)
Fix nv30LineWidth, hw expects a ubyte.
author
Ben Skeggs
<darktama@iinet.net.au>
Sun, 19 Nov 2006 15:52:18 +0000
(15:52 +0000)
committer
Ben Skeggs
<darktama@iinet.net.au>
Sun, 19 Nov 2006 15:52:18 +0000
(15:52 +0000)
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 00ab1c32025dd7c420adbaebd4a75a55213516f0..bf3338d499b5a5233eeed6d996d6ba0426191f3b 100644
(file)
--- a/
src/mesa/drivers/dri/nouveau/nv30_state.c
+++ b/
src/mesa/drivers/dri/nouveau/nv30_state.c
@@
-414,8
+414,12
@@
static void nv30LineStipple(GLcontext *ctx, GLint factor, GLushort pattern )
static void nv30LineWidth(GLcontext *ctx, GLfloat width)
{
nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
+ GLubyte ubWidth;
+
+ CLAMPED_FLOAT_TO_UBYTE(ubWidth, width);
+
BEGIN_RING_SIZE(NvSub3D, NV30_TCL_PRIMITIVE_3D_LINE_WIDTH_SMOOTH, 1);
- OUT_RING
f(w
idth);
+ OUT_RING
(ubW
idth);
}
static void nv30LogicOpcode(GLcontext *ctx, GLenum opcode)