Re: method not implemented: gluScaleImage
Posted by Wade Walker on Jan 24, 2011; 10:47pm
URL: https://forum.jogamp.org/method-not-implemented-gluScaleImage-tp2304656p2324170.html
Found it. Class Type_Widget that's used in Image allocates its buffer as "direct" in JOGL2, but it didn't in JOGL1.
public Type_Widget() {
buffer = ByteBuffer.allocate( 4 ); // JOGL 1
}
public Type_Widget() {
buffer = ByteBuffer.allocateDirect( 4 ); // JOGL 2
}
Apparently creating tons of these inside the tight loops of Image.fill_image() and Image.empty_image() chokes the JVM. That's why it works when you step through slowly in the debugger -- it gives the JVM a chance to catch up.
I'll create a bug report and a patch request for this. In the meantime, if you're building JOGL yourself you can make the above change in Type_Widget.java and it should let you proceed.