From a999e809af97e32cc1198ca816dcacc735a0a4af Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 20 Jan 2004 23:55:45 +0000 Subject: remove _mesa_check_driver_hooks() - it's really not too useful anymore --- src/mesa/main/state.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/mesa/main/state.c') diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 4c6f75a881..0ed7300c19 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -8,9 +8,9 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.1 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 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"), @@ -914,10 +914,10 @@ void _mesa_update_state( GLcontext *ctx ) _mesa_update_tnl_spaces( ctx, new_state ); /* - * Here the driver sets up all the ctx->Driver function pointers - * to it's specific, private functions, and performs any - * internal state management necessary, including invalidating - * state of active modules. + * Give the driver a chance to act upon the new_state flags. + * The driver might plug in different span functions, for example. + * Also, this is where the driver can invalidate the state of any + * active modules (such as swrast_setup, swrast, tnl, etc). * * Set ctx->NewState to zero to avoid recursion if * Driver.UpdateState() has to call FLUSH_VERTICES(). (fixed?) @@ -925,11 +925,6 @@ void _mesa_update_state( GLcontext *ctx ) ctx->NewState = 0; ctx->Driver.UpdateState(ctx, new_state); ctx->Array.NewState = 0; - - /* At this point we can do some assertions to be sure the required - * device driver function pointers are all initialized. - */ - _mesa_check_driver_hooks( ctx ); } /*@}*/ -- cgit v1.2.3