From 1cefc83a8802deb53a176e20fd2d23b8ce47909f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 30 Jan 2002 16:53:03 +0000 Subject: [PATCH] return GL_RENDERER = Mesa Offscreen16/32 when CHAN_BITS = 16 or 32 --- src/mesa/drivers/osmesa/osmesa.c | 12 +++++++++--- 1 file 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; } -- 2.30.2