diff options
author | Brian Paul <[email protected]> | 2000-09-26 20:53:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-26 20:53:53 +0000 |
commit | b1394fa92aaaf859ce9efc8b5fc194397921320c (patch) | |
tree | 48612380d5f16b24deacf643e127fc1b319fbc18 /src/mesa/main/state.c | |
parent | 3b18a36f210da9d66acd1228d24948cd77c2e81e (diff) |
First batch of OpenGL SI related changes:
Renamed struct gl_context to struct __GLcontextRec.
Include glcore.h, setup GL imports/exports.
Replaced gl_ prefix with _mesa_ prefix in context.[ch] functions.
GLcontext's Visual field is no longer a pointer.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index dcc3bd1b6e3..3578d28f899 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.27 2000/09/08 22:07:29 brianp Exp $ */ +/* $Id: state.c,v 1.28 2000/09/26 20:53:53 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -705,7 +705,7 @@ static void update_rasterflags( GLcontext *ctx ) if (ctx->FogMode == FOG_FRAGMENT) ctx->RasterMask |= FOG_BIT; if (ctx->Scissor.Enabled) ctx->RasterMask |= SCISSOR_BIT; if (ctx->Stencil.Enabled) ctx->RasterMask |= STENCIL_BIT; - if (ctx->Visual->RGBAflag) { + if (ctx->Visual.RGBAflag) { const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask); if (colorMask != 0xffffffff) ctx->RasterMask |= MASKING_BIT; if (ctx->Color.ColorLogicOpEnabled) ctx->RasterMask |= LOGIC_OP_BIT; @@ -746,12 +746,12 @@ static void update_rasterflags( GLcontext *ctx ) ctx->RasterMask |= MULTI_DRAW_BIT; ctx->TriangleCaps |= DD_MULTIDRAW; } - else if (ctx->Visual->RGBAflag && *((GLuint *) ctx->Color.ColorMask) == 0) { + else if (ctx->Visual.RGBAflag && *((GLuint *) ctx->Color.ColorMask) == 0) { /* all RGBA channels disabled */ ctx->RasterMask |= MULTI_DRAW_BIT; ctx->TriangleCaps |= DD_MULTIDRAW; } - else if (!ctx->Visual->RGBAflag && ctx->Color.IndexMask==0) { + else if (!ctx->Visual.RGBAflag && ctx->Color.IndexMask==0) { /* all color index bits disabled */ ctx->RasterMask |= MULTI_DRAW_BIT; ctx->TriangleCaps |= DD_MULTIDRAW; |