diff options
author | Brian Paul <[email protected]> | 2000-11-19 23:10:25 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-11-19 23:10:25 +0000 |
commit | a852378a6289d154364dde440f89a39bbfc33e2d (patch) | |
tree | dbaf6946d80e517a2f0b349a11d1736cde1b83e1 /src/mesa/swrast/s_context.c | |
parent | b12d8e3b0ddf6dc56dc866530b66230bdc5d73db (diff) |
Replaced Texture.CurrentD[] with separate Texture.Current1/2/3D vars.
Completely removed the dirty texture object list. Set texObj->Complete
to GL_FALSE to indicate dirty.
Made point/line/triangle/quad SWvertex parameters const.
Minor code clean-ups.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index f1dfef3cc4c..85f9ef08919 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -1,4 +1,4 @@ -/* $Id: s_context.c,v 1.4 2000/11/13 20:02:57 keithw Exp $ */ +/* $Id: s_context.c,v 1.5 2000/11/19 23:10:26 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -190,7 +190,8 @@ _swrast_update_hint( GLcontext *ctx ) */ static void _swrast_validate_quad( GLcontext *ctx, - SWvertex *v0, SWvertex *v1, SWvertex *v2, SWvertex *v3 ) + const SWvertex *v0, const SWvertex *v1, + const SWvertex *v2, const SWvertex *v3 ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); @@ -202,7 +203,9 @@ _swrast_validate_quad( GLcontext *ctx, static void _swrast_validate_triangle( GLcontext *ctx, - SWvertex *v0, SWvertex *v1, SWvertex *v2 ) + const SWvertex *v0, + const SWvertex *v1, + const SWvertex *v2 ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); @@ -213,7 +216,7 @@ _swrast_validate_triangle( GLcontext *ctx, } static void -_swrast_validate_line( GLcontext *ctx, SWvertex *v0, SWvertex *v1 ) +_swrast_validate_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); @@ -224,7 +227,7 @@ _swrast_validate_line( GLcontext *ctx, SWvertex *v0, SWvertex *v1 ) } static void -_swrast_validate_point( GLcontext *ctx, SWvertex *v0 ) +_swrast_validate_point( GLcontext *ctx, const SWvertex *v0 ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); @@ -344,25 +347,27 @@ _swrast_validate_derived( GLcontext *ctx ) */ void _swrast_Quad( GLcontext *ctx, - SWvertex *v0, SWvertex *v1, SWvertex *v2, SWvertex *v3 ) + const SWvertex *v0, const SWvertex *v1, + const SWvertex *v2, const SWvertex *v3 ) { SWRAST_CONTEXT(ctx)->Quad( ctx, v0, v1, v2, v3 ); } void -_swrast_Triangle( GLcontext *ctx, SWvertex *v0, SWvertex *v1, SWvertex *v2 ) +_swrast_Triangle( GLcontext *ctx, const SWvertex *v0, + const SWvertex *v1, const SWvertex *v2 ) { SWRAST_CONTEXT(ctx)->Triangle( ctx, v0, v1, v2 ); } void -_swrast_Line( GLcontext *ctx, SWvertex *v0, SWvertex *v1 ) +_swrast_Line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 ) { SWRAST_CONTEXT(ctx)->Line( ctx, v0, v1 ); } void -_swrast_Point( GLcontext *ctx, SWvertex *v0 ) +_swrast_Point( GLcontext *ctx, const SWvertex *v0 ) { SWRAST_CONTEXT(ctx)->Point( ctx, v0 ); } |