summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-02 15:20:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-02 15:20:23 +0000
commit346a239f0144b5ba7ebad39b70ee7e125264cd6e (patch)
tree3e66f0ace2e2bd56ceb8fbbb2f3dc119d8877ff8
parentcdb27e8242215271364602995d85607cfc06d441 (diff)
return null if no context
-rw-r--r--src/mesa/main/getstring.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index fba8e1634f..a68bf9ff74 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 6.3
+ * Version: 6.5.2
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -60,6 +60,9 @@ _mesa_GetString( GLenum name )
static const char *sl_version_110 = "1.10 Mesa " MESA_VERSION_STRING;
#endif
+ if (!ctx)
+ return NULL;
+
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, NULL);
/* this is a required driver function */