Re: requested graphics configuration
Posted by
runiter on
Jan 16, 2013; 9:07pm
URL: https://forum.jogamp.org/requested-graphics-configuration-tp4027845p4027878.html
I noticed that in your code below you are treating 32bits and 24bits color depth the same ways!
Shouldn't 32bits also include alpha channel? like this: caps.setAlphaBits(8)
switch (settings.getColorDepth()) {
case 32:
case 24:
caps.setRedBits(8);
caps.setBlueBits(8);
caps.setGreenBits(8);
break;
case 16:
caps.setRedBits(4);
caps.setBlueBits(4);
caps.setGreenBits(4);
break;
}