FrameBuffer.getOutputBuffer() problem with new jpct version.

Started by qjvictor, May 07, 2007, 05:43:06 PM

Previous topic - Next topic

qjvictor

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?

EgonOlsen

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. 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...

qjvictor

You mean if I use the .jar you provided, the problem will be fixed?


qjvictor

It works.
Thanks. So do you think I should replace the old jar with the new one you provided, is it a stable release?

EgonOlsen

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.