summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-10-14 11:12:15 +0000
committerKeith Whitwell <[email protected]>2003-10-14 11:12:15 +0000
commita384b0c5ebcdf3a8e796a7ce8ef775937c596431 (patch)
treea70f5186f79741d065fd211c305f556f268104f5
parentacfa4d46a49a22f08ff140478eb9c2a13fabbd1c (diff)
Cope with being initialized multiple times.
-rw-r--r--src/mesa/main/api_arrayelt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index e4533713cd9..68e263ea1bb 100644
--- a/src/mesa/main/api_arrayelt.c
+++ b/src/mesa/main/api_arrayelt.c
@@ -250,6 +250,9 @@ static void (*fogcoordfuncs[8])( const void * ) = {
GLboolean _ae_create_context( GLcontext *ctx )
{
+ if (ctx->aelt_context)
+ return GL_TRUE;
+
ctx->aelt_context = MALLOC( sizeof(AEcontext) );
if (!ctx->aelt_context)
return GL_FALSE;