summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorJouk Jansen <joukj@hrem.stm.tudelft.nl>2001-10-18 08:04:57 +0000
committerJouk Jansen <joukj@hrem.stm.tudelft.nl>2001-10-18 08:04:57 +0000
commit12e875ce4df9ddb15e76b3b52502730d3444b24a (patch)
tree57d0ae05721e39e6340b587a7ad469e2af4d4636 /src/mesa/main
parent5d2621928823a06006c1586efe78fe8bf65a7e1f (diff)
Committing in .
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) ----------------------------------------------------------------------
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 91d6c04c56..690071fee9 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $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
@@ -114,6 +114,7 @@ __glCoreCreateContext(__GLimports *imports, __GLcontextModes *modes)
if (ctx == NULL) {
return NULL;
}
+ ctx->Driver.CurrentExecPrimitive=0;
ctx->imports = *imports;
_mesa_initialize_visual(&ctx->Visual,
@@ -1571,7 +1572,7 @@ _mesa_create_context( const GLvisual *visual,
if (!ctx) {
return NULL;
}
-
+ ctx->Driver.CurrentExecPrimitive = 0;
if (_mesa_initialize_context(ctx, visual, share_list, driver_ctx, direct)) {
return ctx;
}