if (!cv.useSharedCtx) { cv.freeDisplayList(cv.ctx, geo.dlistId); }  if (geo.decrDlistRefCount(mask) == 0) { geo.resourceCreationMask &= ~mask; if (cv.useSharedCtx) { cv.freeDisplayList(cv.ctx, geo.dlistId); } }
cv.freeDisplayList(cv.ctx, geo.dlistId); geo.resourceCreationMask &= ~mask;
    void freeAllDisplayListResources(Canvas3D cv) {	int i;	int size = renderMoleculeList.size();	Renderer rdr = cv.screen.renderer;	if (size > 0) {	    RenderMolecule[] rmArr = (RenderMolecule[])		renderMoleculeList.toArray(false);	    for (i = 0 ; i < size; i++) {		rmArr[i].releaseAllPrimaryDisplayListResources(cv);	    }	}	size =  sharedDList.size();	if (size > 0) {	    RenderAtomListInfo arr[] =		(RenderAtomListInfo []) sharedDList.toArray(false);	    	    GeometryArrayRetained geo; 	    int mask = (cv.useSharedCtx ? rdr.rendererBit : cv.canvasBit);	    for (i = 0; i < size; i++) {		geo = (GeometryArrayRetained)arr[i].geometry();		if (geo.dlistId > 0) {		    if (!cv.useSharedCtx) {			cv.freeDisplayList(cv.ctx, geo.dlistId);		    }		    if (geo.decrDlistRefCount(mask) == 0) {			geo.resourceCreationMask &= ~mask;			if (cv.useSharedCtx) {			    cv.freeDisplayList(cv.ctx, geo.dlistId);			}		    }		}	    }	}    }