Modified Files:
Mesa/src/context.c
Initializing ctx->Driver.CurrentExecPrimitive to 0, just after the allocation
of the context. I hope this solved a very rare crash of the molecule mode
of xlockmore on my VMS-machine. (I have not seen any crash the last week.
Normally it crashed at least once in the 3 days)
----------------------------------------------------------------------
-/* $Id: context.c,v 1.147 2001/09/15 18:02:49 brianp Exp $ */
+/* $Id: context.c,v 1.148 2001/10/18 08:04:57 joukj Exp $ */
/*
* Mesa 3-D graphics library
if (ctx == NULL) {
return NULL;
}
+ ctx->Driver.CurrentExecPrimitive=0;
ctx->imports = *imports;
_mesa_initialize_visual(&ctx->Visual,
if (!ctx) {
return NULL;
}
-
+ ctx->Driver.CurrentExecPrimitive = 0;
if (_mesa_initialize_context(ctx, visual, share_list, driver_ctx, direct)) {
return ctx;
}