diff options
author | Brian Paul <brianp@vmware.com> | 2009-01-29 15:56:19 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-01-30 16:03:32 -0700 |
commit | 81ca8b93f212d1946c70660041ce97d98f352608 (patch) | |
tree | 95b3adedc0254651c666668b259fe3002d2e6a3f /src/mesa/swrast/s_fog.c | |
parent | bd944ef78397fd96dc2b239f542066643b06274a (diff) | |
download | external_mesa3d-81ca8b93f212d1946c70660041ce97d98f352608.zip external_mesa3d-81ca8b93f212d1946c70660041ce97d98f352608.tar.gz external_mesa3d-81ca8b93f212d1946c70660041ce97d98f352608.tar.bz2 |
swrast: replace macro with inline function
Diffstat (limited to 'src/mesa/swrast/s_fog.c')
-rw-r--r-- | src/mesa/swrast/s_fog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_fog.c b/src/mesa/swrast/s_fog.c index b9ba265..77ed0cf 100644 --- a/src/mesa/swrast/s_fog.c +++ b/src/mesa/swrast/s_fog.c @@ -164,7 +164,7 @@ else { \ void _swrast_fog_rgba_span( const GLcontext *ctx, SWspan *span ) { - const SWcontext *swrast = SWRAST_CONTEXT(ctx); + const SWcontext *swrast = CONST_SWRAST_CONTEXT(ctx); GLfloat rFog, gFog, bFog; ASSERT(swrast->_FogEnabled); @@ -283,7 +283,7 @@ _swrast_fog_rgba_span( const GLcontext *ctx, SWspan *span ) void _swrast_fog_ci_span( const GLcontext *ctx, SWspan *span ) { - const SWcontext *swrast = SWRAST_CONTEXT(ctx); + const SWcontext *swrast = CONST_SWRAST_CONTEXT(ctx); const GLuint fogIndex = (GLuint) ctx->Fog.Index; GLuint *index = span->array->index; |