summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-02 17:24:02 +0100
committerSven Gothel <[email protected]>2011-02-02 17:24:02 +0100
commit59db8d216d6776fb1ac9ccb3644413c9b86d2e42 (patch)
tree5fa9e3f0590f3fade791835e0ec878ce00b45817 /src/jogl/classes/com/jogamp/opengl
parent58766a59ec8aa8506508b3baf89400981faeb1a7 (diff)
parentdae2f33848a60003096681ae18e719aee9936112 (diff)
Merge remote branch 'wwalker/bug_463_gluScaleImage_memory' into pulled
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/impl/glu/mipmap/Type_Widget.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/glu/mipmap/Type_Widget.java b/src/jogl/classes/com/jogamp/opengl/impl/glu/mipmap/Type_Widget.java
index b329840ef..0aeca8f1c 100644
--- a/src/jogl/classes/com/jogamp/opengl/impl/glu/mipmap/Type_Widget.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/glu/mipmap/Type_Widget.java
@@ -56,7 +56,9 @@ public class Type_Widget {
/** Creates a new instance of Type_Widget */
public Type_Widget() {
- buffer = ByteBuffer.allocateDirect( 4 );
+ // can't make this direct, because JVM doesn't allocate small direct buffers efficiently
+ // see https://jogamp.org/bugzilla/show_bug.cgi?id=463 for details
+ buffer = ByteBuffer.allocate( 4 );
}
public void setUB0( byte b ) {