summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-10-30 17:12:05 +0000
committerKeith Whitwell <[email protected]>2006-10-30 17:12:05 +0000
commite8abd098b36c30d76b4c396970fd793ae58e0702 (patch)
tree6771c25a9268c3e6379bedc0d334bc0c65619afa /src/mesa/vbo/vbo_save.c
parent48f5deab94be832a782a440f55a7bc742d50a62f (diff)
Remove wakeup functions. This code is intended to be active all the
time.
Diffstat (limited to 'src/mesa/vbo/vbo_save.c')
-rw-r--r--src/mesa/vbo/vbo_save.c38
1 files changed, 13 insertions, 25 deletions
diff --git a/src/mesa/vbo/vbo_save.c b/src/mesa/vbo/vbo_save.c
index 0a5b7054005..3a97ea66a4f 100644
--- a/src/mesa/vbo/vbo_save.c
+++ b/src/mesa/vbo/vbo_save.c
@@ -35,6 +35,18 @@
+static void vbo_save_callback_init( GLcontext *ctx )
+{
+ ctx->Driver.NewList = vbo_save_NewList;
+ ctx->Driver.EndList = vbo_save_EndList;
+ ctx->Driver.SaveFlushVertices = vbo_save_SaveFlushVertices;
+ ctx->Driver.BeginCallList = vbo_save_BeginCallList;
+ ctx->Driver.EndCallList = vbo_save_EndCallList;
+ ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin;
+}
+
+
+
void vbo_save_init( GLcontext *ctx )
{
struct vbo_save_context *save = &vbo_context(ctx)->save;
@@ -42,7 +54,7 @@ void vbo_save_init( GLcontext *ctx )
save->ctx = ctx;
vbo_save_api_init( save );
- vbo_save_wakeup(ctx);
+ vbo_save_callback_init(ctx);
ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN;
}
@@ -68,27 +80,3 @@ void vbo_save_fallback( GLcontext *ctx, GLboolean fallback )
}
-/* I don't see any reason to swap this code out on fallbacks. It
- * wouldn't really mean anything to do so anyway as the old lists are
- * still around from pre-fallback. Instead, the above code ensures
- * that vertices are routed back through immediate mode dispatch on
- * fallback.
- *
- * The below can be moved into init or removed:
- */
-void vbo_save_wakeup( GLcontext *ctx )
-{
- ctx->Driver.NewList = vbo_save_NewList;
- ctx->Driver.EndList = vbo_save_EndList;
- ctx->Driver.SaveFlushVertices = vbo_save_SaveFlushVertices;
- ctx->Driver.BeginCallList = vbo_save_BeginCallList;
- ctx->Driver.EndCallList = vbo_save_EndCallList;
- ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin;
-
- /* Assume we haven't been getting state updates either:
- */
- vbo_save_invalidate_state( ctx, ~0 );
-}
-
-
-