diff options
author | Brian Paul <[email protected]> | 2000-02-17 20:52:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-02-17 20:52:02 +0000 |
commit | 27b4b2f003636d7f64829e0487f5f8dbc8b1eebe (patch) | |
tree | 182e2e36b94bb43f06005c5a82e83c6cc4795294 /src/mesa/drivers/windows/wmesa.c | |
parent | 5bd2987840567047f19cc2dad6fc5f3fb84345fc (diff) |
replaced renderer_string() with get_string() func
Diffstat (limited to 'src/mesa/drivers/windows/wmesa.c')
-rw-r--r-- | src/mesa/drivers/windows/wmesa.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c index d2c0a56b26f..3e4e1359ce8 100644 --- a/src/mesa/drivers/windows/wmesa.c +++ b/src/mesa/drivers/windows/wmesa.c @@ -1,4 +1,4 @@ -/* $Id: wmesa.c,v 1.1 1999/08/19 00:55:42 jtg Exp $ */ +/* $Id: wmesa.c,v 1.2 2000/02/17 20:52:02 brianp Exp $ */ /* * File name : wmesa.c @@ -22,8 +22,11 @@ /* * $Log: wmesa.c,v $ - * Revision 1.1 1999/08/19 00:55:42 jtg - * Initial revision + * Revision 1.2 2000/02/17 20:52:02 brianp + * replaced renderer_string() with get_string() func + * + * Revision 1.1.1.1 1999/08/19 00:55:42 jtg + * Imported sources * * Revision 3.10 1999/06/15 01:35:06 brianp * small change to wmSetPixel() from [email protected] @@ -1151,16 +1154,21 @@ static void read_rgba_pixels( const GLcontext* ctx, /**********************************************************************/ -static const char *renderer_string(void) +static const GLubyte *get_string(GLcontext *ctx, GLenum name) { - return "Windows"; + if (name == GL_RENDERER) { + return (GLubyte *) "Mesa Windows"; + } + else { + return NULL; + } } void setup_DD_pointers( GLcontext* ctx ) { - ctx->Driver.RendererString = renderer_string; + ctx->Driver.GetString = get_string; ctx->Driver.UpdateState = setup_DD_pointers; ctx->Driver.GetBufferSize = buffer_size; ctx->Driver.Finish = finish; |