Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 2f278f6

Browse files
authored
Merge pull request #118 from UnityTech/kgdev
fix a typo.
2 parents 41406f1 + fba8810 commit 2f278f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/painting/image_cache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public ImageStreamCompleter putIfAbsent(object key, Func<ImageStreamCompleter> l
110110
D.assert(this._pendingImages.ContainsKey(key));
111111
this._pendingImages.Remove(key);
112112

113-
int imageSize = info?.image == null ? 0 : info.image.width & (info.image.height * 4);
113+
int imageSize = info?.image == null ? 0 : info.image.width * info.image.height * 4;
114114
_CachedImage cachedImage = new _CachedImage {
115115
completer = result,
116116
sizeBytes = imageSize,

0 commit comments

Comments
 (0)