From de4f460e20cf76ece883530ffe3f82a0afc817f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Jul 2003 02:15:06 +0000 Subject: Simplify extension string handling. --- src/mesa/main/get.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/get.c') diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 88a1d947f3..b0de5e7ec0 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) { -- cgit v1.2.3