diff options
author | Daniel Borca <[email protected]> | 2003-11-12 11:55:21 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2003-11-12 11:55:21 +0000 |
commit | 80ee4b1e9dbf62f9aa86c3b8531615d14f077dd9 (patch) | |
tree | d2739a5fbce4274934da83a27305957ddf81a749 /src | |
parent | a2b9bad251b058f6255fa037b842c5465c0609a2 (diff) |
dirty hack to advertise vanilla extension names
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 8743148b491..0bb884c64df 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -1218,6 +1218,29 @@ fxDDGetString(GLcontext * ctx, GLenum name) switch (name) { case GL_RENDERER: return (GLubyte *)fxMesa->rendererString; +#if 1 /* hack to advertise vanilla extension names */ + case GL_EXTENSIONS: + { + static const GLubyte *ext = NULL; + if (ext == NULL) { + GLubyte *x = _mesa_make_extension_string(ctx); + if (x != NULL) { + ext = _mesa_malloc(strlen((char *)x) + 1024); + if (ext != NULL) { + strcpy((char *)ext, (char *)x); +#if 0 /* put any additional extension names here */ + strcat((char *)ext, " GL_xxx"); +#endif + _mesa_free(x); + } else { + ext = x; + } + ctx->Extensions.String = ext; + } + } + return ext; + } +#endif default: return NULL; } |