diff options
author | Brian Paul <[email protected]> | 2003-07-03 02:15:06 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-07-03 02:15:06 +0000 |
commit | de4f460e20cf76ece883530ffe3f82a0afc817f3 (patch) | |
tree | ccd36e7360d511fee571ded4b30ab565751e3bf3 /src/mesa/main/get.c | |
parent | 9826ca3ef533bf6155511b169509ffc09e9701ef (diff) |
Simplify extension string handling.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 4 |
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) { |