aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-05-20 01:02:27 +0200
committerSven Gothel <[email protected]>2014-05-20 01:02:27 +0200
commitcca2782818bec79f63a5da1719b11e15244dbea2 (patch)
tree880a492c63dbf1a75f36c4f0e39c75bf0a2e0976 /src/jogl/classes/com/jogamp/graph
parentd73a4a37bd4a376fc712ecc03332b8cf8821d134 (diff)
Bug 801: Refine commit 9a15aad0e5388a4b927e44d3d2ce136f32474bc2 cache TextureSequence's fragment shader hash-code
Adding TextureSequence.getTextureFragmentShaderHashCode() allowing to use a cached hash-code (performance, interface usability). Implemented in GLMediaPlayerImpl and ImageSequence.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
index 438895d8e..bb191e651 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
@@ -394,9 +394,7 @@ public class RegionRenderer {
final boolean pass1, final int quality, final int sampleCount, final TextureSequence colorTexSeq) {
final int colorTexSeqHash;
if( null != colorTexSeq ) {
- int hash = 31 + colorTexSeq.getTextureLookupFragmentShaderImpl().hashCode();
- hash = ((hash << 5) - hash) + colorTexSeq.getTextureSampler2DType().hashCode();
- colorTexSeqHash = hash;
+ colorTexSeqHash = colorTexSeq.getTextureFragmentShaderHashCode();
} else {
colorTexSeqHash = 0;
}