From d38fbf00efa47834f754306441cb99f2ef967a21 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Thu, 9 Jan 2014 10:33:16 +0100
Subject: PixelRectangle.GenericPixelRect: hashCode() impl. didn't set volatile
 hashCodeComputed := true (always re-computes hash code - duh!)

---
 .../classes/javax/media/nativewindow/util/PixelRectangle.java            | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/nativewindow/classes/javax')

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;
                     }
                 }
             }
-- 
cgit v1.2.3