removed unused NEW_DRVSTATE flags

This commit is contained in:
Brian Paul
2000-09-08 22:07:29 +00:00
parent 9d3e5db9fc
commit 399ae35ac6
2 changed files with 33 additions and 44 deletions

View File

@@ -831,7 +831,6 @@ int fxDDInitFxMesaContext( fxMesaContext fxMesa )
fxMesa->glCtx->Const.MaxTextureLevels=9;
fxMesa->glCtx->Const.MaxTextureSize=256;
fxMesa->glCtx->Const.MaxTextureUnits=fxMesa->emulateTwoTMUs ? 2 : 1;
fxMesa->glCtx->NewState|=NEW_DRVSTATE1;
fxMesa->new_state = NEW_ALL;
fxDDSetupInit();

View File

@@ -1,4 +1,4 @@
/* $Id: state.c,v 1.26 2000/09/08 21:44:55 brianp Exp $ */
/* $Id: state.c,v 1.27 2000/09/08 22:07:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -762,17 +762,13 @@ static void update_rasterflags( GLcontext *ctx )
void gl_print_state( const char *msg, GLuint state )
{
fprintf(stderr,
"%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
"%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
msg,
state,
(state & NEW_LIGHTING) ? "lighting, " : "",
(state & NEW_RASTER_OPS) ? "raster-ops, " : "",
(state & NEW_TEXTURING) ? "texturing, " : "",
(state & NEW_POLYGON) ? "polygon, " : "",
(state & NEW_DRVSTATE0) ? "driver-0, " : "",
(state & NEW_DRVSTATE1) ? "driver-1, " : "",
(state & NEW_DRVSTATE2) ? "driver-2, " : "",
(state & NEW_DRVSTATE3) ? "driver-3, " : "",
(state & NEW_MODELVIEW) ? "modelview, " : "",
(state & NEW_PROJECTION) ? "projection, " : "",
(state & NEW_TEXTURE_MATRIX) ? "texture-matrix, " : "",
@@ -880,10 +876,11 @@ void gl_update_state( GLcontext *ctx )
ctx->NeedNormals = (ctx->Light.Enabled || ctx->Texture.NeedNormals);
}
if (ctx->NewState & (NEW_RASTER_OPS | NEW_LIGHTING | NEW_FOG | NEW_TEXTURE_ENABLE)) {
if (ctx->NewState & (NEW_RASTER_OPS | NEW_TEXTURE_ENABLE)) {
if (ctx->NewState & NEW_FOG) {
update_fog_mode(ctx);
}
if (ctx->NewState & NEW_RASTER_OPS) {
update_rasterflags(ctx);
/* update scissor region */
@@ -915,7 +912,6 @@ void gl_update_state( GLcontext *ctx )
gl_update_lighting(ctx);
}
}
}
if (ctx->NewState & (NEW_POLYGON | NEW_LIGHTING)) {
@@ -959,9 +955,7 @@ void gl_update_state( GLcontext *ctx )
}
}
if (ctx->NewState & ~(NEW_CLIENT_STATE|
NEW_DRIVER_STATE|NEW_USER_CLIP|
NEW_POLYGON))
if (ctx->NewState & ~(NEW_CLIENT_STATE | NEW_USER_CLIP | NEW_POLYGON))
gl_update_clipmask(ctx);
if (ctx->NewState & (NEW_LIGHTING|
@@ -970,10 +964,6 @@ void gl_update_state( GLcontext *ctx )
NEW_TEXTURE_ENABLE|
NEW_TEXTURE_ENV|
NEW_POLYGON|
NEW_DRVSTATE0|
NEW_DRVSTATE1|
NEW_DRVSTATE2|
NEW_DRVSTATE3|
NEW_USER_CLIP))
{
ctx->IndirectTriangles = ctx->TriangleCaps & ~ctx->Driver.TriangleCaps;