added dumpCachedTextureInfo() for debug builds