Linux: Fixed accum color bits when accum_bpp = 0

This commit is contained in:
Elias Naur 2006-05-13 10:03:19 +00:00
parent 6bb5885bcc
commit ec67322e64
1 changed files with 3 additions and 0 deletions

View File

@ -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;