LWJGL
June 19, 2013, 09:59:18 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: SPGL no longer runs with LWJGL 1.1  (Read 2771 times)
Nop
Newbie
*
Posts: 43


« on: May 21, 2007, 14:04:57 »


I am using the Shaven Puppy lib and I have just tried to move to LWJGL 1.1

I get the Exception

Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.lwjgl.opengl.Display.getContext()Lorg/lwjgl/opengl/Context; from class com.shavenpuppy.jglib.opengl.GLResource
   at com.shavenpuppy.jglib.opengl.GLResource.doCreate(GLResource.java:76)
   at com.shavenpuppy.jglib.Resources.allocate(Resources.java:400)
   at com.shavenpuppy.jglib.Resource.create(Resource.java:210)

It seems that the getContext() method was changed to private.

Is there a workaround for this?
Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #1 on: May 21, 2007, 16:05:27 »

have shavenpuppy lib not access that ? Smiley
alternatively heavy use of reflection
Logged

Nop
Newbie
*
Posts: 43


« Reply #2 on: May 21, 2007, 21:45:47 »


Quote
have shavenpuppy lib not access that

Gladly. :-)

So if Display.getContext() is private now, what would be the proper public call to replace it with?
Logged
Nop
Newbie
*
Posts: 43


« Reply #3 on: May 23, 2007, 00:38:33 »


Just kept commenting out code until it compiled. Seems to work anyway for now...
Logged
cornholio
Newbie
*
Posts: 20



« Reply #4 on: May 27, 2007, 14:06:50 »


Just kept commenting out code until it compiled. Seems to work anyway for now...

hehe ... this is how they build a release at microsoft  Wink
Logged
Orangy Tang
Talks Too Much
***
Posts: 199



« Reply #5 on: June 06, 2007, 06:08:41 »

I seem to have the same problem now. From what I can tell it's just using the return object of getContext() to make sure things are being properly created and destroyed in the same context/thread - the actual Context object itself isn't being manipulated in any way.

I assume it was made private to stop people messing around with the Context, would it be possible to get some kind of replacement for the above functionality? Maybe an isCurrent() call along with makeCurrent()?
Logged
elias
Nerdus Imperius
*****
Posts: 899



WWW
« Reply #6 on: June 06, 2007, 06:55:07 »

Sorry about that. You can replace the Display.getContext() call with Display.getDrawable().getContext().

  - elias
Logged

Orangy Tang
Talks Too Much
***
Posts: 199



« Reply #7 on: June 06, 2007, 07:12:26 »

Ahaha, I was just wondering what the new Drawable was.  Grin

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!