www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: qjvictor on May 07, 2007, 05:43:06 pm

Title: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: qjvictor on May 07, 2007, 05:43:06 pm
when I use FrameBuffer.getOutputBuffer(), I get the exception as following:
java.lang.NullPointerException
   at java.lang.System.arraycopy(Native Method)
   at com.threed.jpct.FrameBuffer.getOutputBuffer(Unknown Source)

While when I use the old version, it works.

is it a bug?
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: EgonOlsen on May 07, 2007, 06:12:52 pm
Yes, it is. It happens when using one of the new oversampling modes for hardware. I've uploaded a fixed version here: http://www.jpct.net/download/beta/jpct.jar (http://www.jpct.net/download/beta/jpct.jar). This version includes some (still undocumented) future stuff...ignore this for now. I've also removed some code from getOutputBuffer() that made no sense to me. Please let me know, if i've broken something with this change...
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: qjvictor on May 07, 2007, 06:15:17 pm
You mean if I use the .jar you provided, the problem will be fixed?
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: EgonOlsen on May 07, 2007, 06:16:55 pm
Hopefully...
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: qjvictor on May 07, 2007, 06:21:42 pm
It works.
Thanks. So do you think I should replace the old jar with the new one you provided, is it a stable release?
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: EgonOlsen on May 07, 2007, 06:27:24 pm
It's not a stable release, but changes should be limited to upcoming (1.14+) features only, so it should work fine when using the "old" features only. I suggest to replace the current jar with it as long as no other problems arise. If they arise, please let me know.
Title: Re: FrameBuffer.getOutputBuffer() problem with new jpct version.
Post by: qjvictor on May 07, 2007, 06:45:36 pm
Thanks.