summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-12-02 20:33:06 +0000
committerBrian Paul <[email protected]>1999-12-02 20:33:06 +0000
commit32c3255e0688d33d158b19375da085ca85075021 (patch)
treeb4c808603258e87257cf85d2d516f54bf8eaf99a
parent7b0903557af6a1c2342bb1bac4ecd46a4cc509a0 (diff)
test for null newCtx before newCtx->FirstTimeCurrent
-rw-r--r--src/mesa/main/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 408fe0aa198..6a93f61985f 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.24 1999/11/30 20:34:51 brianp Exp $ */
+/* $Id: context.c,v 1.25 1999/12/02 20:33:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1540,7 +1540,7 @@ void gl_make_current2( GLcontext *newCtx, GLframebuffer *drawBuffer,
* first time each context is made current we'll print some useful
* information.
*/
- if (newCtx->FirstTimeCurrent) {
+ if (newCtx && newCtx->FirstTimeCurrent) {
if (getenv("MESA_INFO")) {
fprintf(stderr, "Mesa GL_VERSION = %s\n", (char *) _mesa_GetString(GL_VERSION));
fprintf(stderr, "Mesa GL_RENDERER = %s\n", (char *) _mesa_GetString(GL_RENDERER));