From: Brian Paul Date: Thu, 2 May 2013 01:15:32 +0000 (-0600) Subject: vbo: fix initial value of ctx->Driver.CurrentSavePrimitive X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5472ae1fa9fad8f1a2c60f56f2ac2c94bd38f04c;p=mesa.git vbo: fix initial value of ctx->Driver.CurrentSavePrimitive This is set during context creation/initialization. We know we're not inside glBegin/glEnd at this point so use PRIM_OUTSIDE_BEGIN_END. Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/vbo/vbo_save.c b/src/mesa/vbo/vbo_save.c index 1b46c0447e0..305256a3aed 100644 --- a/src/mesa/vbo/vbo_save.c +++ b/src/mesa/vbo/vbo_save.c @@ -86,7 +86,7 @@ void vbo_save_init( struct gl_context *ctx ) } } - ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN; + ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END; }