it is possible to get a recommendedVis with GLX.glXChooseVisual
with a depth which is not supported by the awt.
this happens in com.sun.opengl.impl.x11.X11GLDrawableFactory at least with
(remote) display on sgi irix.
the recommended visual has a depth of 30 (32 bits are devided in 3x10 color bits and 2 alpha bits)
i made the following quick and dirty extension to X11GLDrawableFactory.java near line 168:
168 caps = new GLCapabilities[infos.length];
169 for (int i = 0; i < infos.length; i++) {
170 if (infos[i].depth() == 30 || infos[i].depth() == 12)
171 continue; //i.b. unsupported depth
172 caps[i] = xvi2GLCapabilities(display, infos[i]);
173 // Attempt to find the visual chosen by glXChooseVisual
174 if (recommendedVis != null && recommendedVis.visualid() == infos
[i].visualid()) {
175 //i.b.
176 if (recommendedVis.depth() != 30)
177 recommendedIndex = i;
178 }
179 }
after disabling 30 the next depth found by the defaultchooser was 12, which is also not supported.
i should be compared in general to a list of supported visuals for onscreen drawables.
i.b.