summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-07-05 15:12:13 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-07-05 15:12:13 +0000
commit5233ca8d3061e9e126c73073dccf56c65869bb61 (patch)
tree36f696d40da6f8b793b117a35e6cafd380491d66 /src/mesa/drivers
parent8564f0536b2b3f6166c80ce43ae1ba44cf81d72a (diff)
fixed logic error in OSMesaMakeCurrent() for 565 pixel support (Lars Andersson)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index b93683ae2a..85679d6a92 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;