summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-07-03 02:15:06 +0000
committerBrian Paul <[email protected]>2003-07-03 02:15:06 +0000
commitde4f460e20cf76ece883530ffe3f82a0afc817f3 (patch)
treeccd36e7360d511fee571ded4b30ab565751e3bf3 /src/mesa/main/get.c
parent9826ca3ef533bf6155511b169509ffc09e9701ef (diff)
Simplify extension string handling.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 88a1d947f31..b0de5e7ec06 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -6243,7 +6243,9 @@ _mesa_GetString( GLenum name )
return (const GLubyte *) version_1_2;
}
case GL_EXTENSIONS:
- return (const GLubyte *) _mesa_extensions_get_string(ctx);
+ if (!ctx->Extensions.String)
+ ctx->Extensions.String = _mesa_make_extension_string(ctx);
+ return (const GLubyte *) ctx->Extensions.String;
#if FEATURE_NV_fragment_program
case GL_PROGRAM_ERROR_STRING_NV:
if (ctx->Extensions.NV_fragment_program) {