From 5233ca8d3061e9e126c73073dccf56c65869bb61 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 5 Jul 2001 15:12:13 +0000 Subject: fixed logic error in OSMesaMakeCurrent() for 565 pixel support (Lars Andersson) --- src/mesa/drivers/osmesa/osmesa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index b93683ae2a7..85679d6a928 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.59 2001/06/27 13:56:17 brianp Exp $ */ +/* $Id: osmesa.c,v 1.60 2001/07/05 15:12:13 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -457,8 +457,9 @@ OSMesaMakeCurrent( OSMesaContext ctx, void *buffer, GLenum type, return GL_FALSE; } - if (ctx->format == OSMESA_RGB_565 && type != GL_UNSIGNED_SHORT_5_6_5) { - return GL_FALSE; + if (ctx->format == OSMESA_RGB_565) { + if (type != GL_UNSIGNED_SHORT_5_6_5) + return GL_FALSE; } else if (type != CHAN_TYPE) { return GL_FALSE; -- cgit v1.2.3