LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: renanse on November 09, 2005, 20:35:52

Title: Recent Mac Pbuffer bug?
Post by: renanse on November 09, 2005, 20:35:52
This seems to have recently appeared, so my best guess is that a recent OSX patch did something to cause Pbuffers to have issues.  I get this error when I run org.lwjgl.test.opengl.pbuffers.PbufferTest with arg 1 (and basically the same with 2.)

Creating pbuffer with unique context...2005-11-09 13:28:53.918 java[385] invalid share context
2005-11-09 13:28:53.919 java[385] invalid context
org.lwjgl.LWJGLException: Could not create context
       at org.lwjgl.opengl.MacOSXContextImplementation.nCreate(Native Method)
       at org.lwjgl.opengl.MacOSXContextImplementation.create(MacOSXContextImplementation.java:48)
       at org.lwjgl.opengl.Context.<init>(Context.java:123)
       at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:192)
       at org.lwjgl.test.opengl.pbuffers.UniqueRenderer.init(UniqueRenderer.java:50)
       at org.lwjgl.test.opengl.pbuffers.TextureRenderer.<init>(TextureRenderer.java:54)
       at org.lwjgl.test.opengl.pbuffers.UniqueRenderer.<init>(UniqueRenderer.java:43)
       at org.lwjgl.test.opengl.pbuffers.PbufferTest.<init>(PbufferTest.java:130)
       at org.lwjgl.test.opengl.pbuffers.PbufferTest.main(PbufferTest.java:422)


For some reason org.lwjgl.test.opengl.PbufferTest works.  I'm guessing it's because you are not specifying args to PixelFormat.

Thanks in advance...
Title: Recent Mac Pbuffer bug?
Post by: Matzon on November 09, 2005, 21:07:49
Is this from CVS?
perhaps this commit could have something to do with it:
http://cia.navi.cx/stats/project/LWJGL/.message/6286468
Title: Recent Mac Pbuffer bug?
Post by: elias on November 10, 2005, 08:48:40
We got that problem when we installed the 10.4.3 update. A workaround has been comitted to LWJGL CVS.

- elias
Title: Recent Mac Pbuffer bug?
Post by: renanse on November 10, 2005, 16:03:08
Great, thanks.  Any chance of a quick build I can toss in jME?  :P
Title: Recent Mac Pbuffer bug?
Post by: elias on November 10, 2005, 17:04:01
The fix is java only so you should be able to just build a new lwjgl.jar from CVS.

- elias
Title: Recent Mac Pbuffer bug?
Post by: renanse on November 10, 2005, 17:52:03
Ok thanks.
Title: Recent Mac Pbuffer bug?
Post by: renanse on November 10, 2005, 18:07:13
Hmm, I'm having issues grabbing the latest from cvs.  Would it be possible to send me just the new lwjgl.jar?  *smile apologetically*   If not, I'll just keep trying until sourceforge lets me pull.
Title: Recent Mac Pbuffer bug?
Post by: renanse on November 10, 2005, 19:24:52
nvmd, cvs finally worked.  I'll try the new jar and report back.