From ec67322e64786e4c0b437427408cbf5208701c43 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 13 May 2006 10:03:19 +0000 Subject: [PATCH] Linux: Fixed accum color bits when accum_bpp = 0 --- src/native/linux/context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/native/linux/context.c b/src/native/linux/context.c index f3133346..d9bd3dd4 100644 --- a/src/native/linux/context.c +++ b/src/native/linux/context.c @@ -98,6 +98,9 @@ GLXFBConfig *getFBConfigFromPeerInfo(JNIEnv *env, X11PeerInfo *peer_info) { static int convertToBPE(int bpp) { int bpe; switch (bpp) { + case 0: + bpe = 0; + break; case 32: case 24: bpe = 8;