vbo: fix initial value of ctx->Driver.CurrentSavePrimitive
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:32 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:15 +0000 (09:03 -0600)
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 <jfonseca@vmware.com>
src/mesa/vbo/vbo_save.c

index 1b46c0447e0470ede0ff53295c4ea0889b4031c8..305256a3aed00dba6b5bcfd3b34f53a73201ddb5 100644 (file)
@@ -86,7 +86,7 @@ void vbo_save_init( struct gl_context *ctx )
       }
    }
 
-   ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN;
+   ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END;
 }