mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 03:20:33 +01:00
Fix nv30LineWidth, hw expects a ubyte.
This commit is contained in:
parent
a2a747704d
commit
80a0ce37df
1 changed files with 5 additions and 1 deletions
|
|
@ -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_RINGf(width);
|
||||
OUT_RING(ubWidth);
|
||||
}
|
||||
|
||||
static void nv30LogicOpcode(GLcontext *ctx, GLenum opcode)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue