diff options
author | Brian Paul <[email protected]> | 2002-01-30 16:53:03 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-01-30 16:53:03 +0000 |
commit | 1cefc83a8802deb53a176e20fd2d23b8ce47909f (patch) | |
tree | bb1791c373824ce38255fcb0129a3359de204883 | |
parent | eae38ca1b23cb78d0130d8b30d167a9d12b9f4b2 (diff) |
return GL_RENDERER = Mesa Offscreen16/32 when CHAN_BITS = 16 or 32
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index a85c8eeb07f..1e0fa757f8e 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,10 +1,10 @@ -/* $Id: osmesa.c,v 1.72 2001/12/17 04:56:29 brianp Exp $ */ +/* $Id: osmesa.c,v 1.73 2002/01/30 16:53:03 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.1 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1996,7 +1996,13 @@ static const GLubyte *get_string( GLcontext *ctx, GLenum name ) (void) ctx; switch (name) { case GL_RENDERER: +#if CHAN_BITS == 32 + return (const GLubyte *) "Mesa OffScreen32"; +#elif CHAN_BITS == 16 + return (const GLubyte *) "Mesa OffScreen16"; +#else return (const GLubyte *) "Mesa OffScreen"; +#endif default: return NULL; } |