Made usage count case-insensitive.

Maybe the issue should instead be addressed upstream by forcing texture
names to be upper-case?