diff options
author | Sven Gothel <[email protected]> | 2014-01-09 10:33:16 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-09 10:33:16 +0100 |
commit | d38fbf00efa47834f754306441cb99f2ef967a21 (patch) | |
tree | a3952d1c9bd85ec6338378d73084af7d7fdea400 /src/nativewindow/classes | |
parent | a05d870524fda16192dc488e77177a52a82eceb3 (diff) |
PixelRectangle.GenericPixelRect: hashCode() impl. didn't set volatile hashCodeComputed := true (always re-computes hash code - duh!)
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/util/PixelRectangle.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/PixelRectangle.java b/src/nativewindow/classes/javax/media/nativewindow/util/PixelRectangle.java index 493c712bb..96c1f7b33 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/util/PixelRectangle.java +++ b/src/nativewindow/classes/javax/media/nativewindow/util/PixelRectangle.java @@ -153,6 +153,7 @@ public interface PixelRectangle { hash = ((hash << 5) - hash) + strideInBytes; hash = ((hash << 5) - hash) + ( isGLOriented ? 1 : 0); hashCode = ((hash << 5) - hash) + pixels.hashCode(); + hashCodeComputed = true; } } } |