www.jpct.net
jPCT - a 3d engine for Java => Bugs => Topic started 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?
-
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...
-
You mean if I use the .jar you provided, the problem will be fixed?
-
Hopefully...
-
It works.
Thanks. So do you think I should replace the old jar with the new one you provided, is it a stable release?
-
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.
-
Thanks.