if (visID == 0 || visInfo[0] == 0) return false;
if (visID == 0 || fbConfig[0] == 0) return false;
    boolean isGraphicsConfigSupported(GraphicsConfigTemplate3D template,                                      GraphicsConfiguration gc) {        X11GraphicsDevice gd =            (X11GraphicsDevice)((X11GraphicsConfig)gc).getDevice();	NativeScreenInfo nativeScreenInfo = new NativeScreenInfo(gd);	long display = nativeScreenInfo.getDisplay();	int screen = nativeScreenInfo.getScreen();        int[] attrList;   // holds the list of attributes to be tramslated                          // for glxChooseVisual call        attrList = new int[NUM_ITEMS];        // assign template values to array        attrList[RED_SIZE] = template.getRedSize();        attrList[GREEN_SIZE] = template.getGreenSize();        attrList[BLUE_SIZE] = template.getBlueSize();        attrList[DEPTH_SIZE] = template.getDepthSize();        attrList[DOUBLEBUFFER] = template.getDoubleBuffer();        attrList[STEREO] = template.getStereo();        attrList[ANTIALIASING] = template.getSceneAntialiasing();		long[] visInfo = new long[1];        int visID = chooseOglVisual(display, screen, attrList, visInfo);        if (visID == 0 || visInfo[0] == 0)            return false;  // no valid visual was found	else	    return true;    }