diff options
author | Brian Paul <[email protected]> | 2000-03-13 18:31:51 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-03-13 18:31:51 +0000 |
commit | 7c652d77220610ecc19aaefa20876216b035e961 (patch) | |
tree | 81703d849e0fb821102f121f757714ed07a41770 /src/mesa/main/polygon.c | |
parent | 3cb112129998e8a4ae8499b47a7c5325ef08bc64 (diff) |
fixed polygon stipple packing/unpacking
Diffstat (limited to 'src/mesa/main/polygon.c')
-rw-r--r-- | src/mesa/main/polygon.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index b461ac2998f..5fb07b41209 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -1,10 +1,10 @@ -/* $Id: polygon.c,v 1.9 2000/03/03 17:47:39 brianp Exp $ */ +/* $Id: polygon.c,v 1.10 2000/03/13 18:31:51 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.3 * - * Copyright (C) 1999 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -136,23 +136,22 @@ _mesa_PolygonMode( GLenum face, GLenum mode ) * NOTE: stipple pattern has already been unpacked. */ void -_mesa_PolygonStipple( const GLubyte *mask ) +_mesa_PolygonStipple( const GLubyte *pattern ) { GET_CURRENT_CONTEXT(ctx); - GLuint *pattern = (GLuint *) mask; /* XXX verify */ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glPolygonStipple"); if (MESA_VERBOSE&VERBOSE_API) fprintf(stderr, "glPolygonStipple\n"); - MEMCPY( ctx->PolygonStipple, pattern, 32 * 4 ); + _mesa_unpack_polygon_stipple(pattern, ctx->PolygonStipple, &ctx->Unpack); if (ctx->Polygon.StippleFlag) { ctx->NewState |= NEW_RASTER_OPS; } if (ctx->Driver.PolygonStipple) - ctx->Driver.PolygonStipple( ctx, mask ); + ctx->Driver.PolygonStipple( ctx, (const GLubyte *) ctx->PolygonStipple ); } @@ -166,7 +165,7 @@ _mesa_GetPolygonStipple( GLubyte *dest ) if (MESA_VERBOSE&VERBOSE_API) fprintf(stderr, "glGetPolygonStipple\n"); - gl_pack_polygon_stipple( ctx, ctx->PolygonStipple, dest ); + _mesa_pack_polygon_stipple(ctx->PolygonStipple, dest, &ctx->Pack); } |