Log.info("TargetDisplayMode: "+targetDisplayMode);
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
PixelFormat format = new PixelFormat(8,8,stencil ? 8 : 0,samples);
tryCreateDisplay(format);
supportsMultiSample = true;
} catch (Exception e) {
Display.destroy();
try {
PixelFormat format = new PixelFormat(8,8,stencil ? 8 : 0);
tryCreateDisplay(format);
alphaSupport = false;
} catch (Exception e2) {
Display.destroy();
// if we couldn't get alpha, let us know
try {
tryCreateDisplay(new PixelFormat());
} catch (Exception e3) {
Log.error(e3);
}
}
}