}
public RenderImage getImage(final String filename, final boolean filterLinear) {
String key = buildName(filename, filterLinear);
if (imageCache.containsKey(key)) {
RenderImage existingEntry = imageCache.get(key).addReference();
log.finer(key + " exists [" + imageCache.get(key).references + "]");
return existingEntry;
}
NiftyStopwatch.start();
RenderImage createImage = renderDevice.createImage(filename, filterLinear);
ReferencedCountedImage newEntry = new ReferencedCountedImage(filename, filterLinear, createImage);
backReference.put(createImage, newEntry);
imageCache.put(key, newEntry);
log.finer(key + " create [" + imageCache.get(key).references + "]");