LWJGL
June 19, 2013, 09:59:18
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
OpenGL
>
SPGL no longer runs with LWJGL 1.1
Pages: [
1
]
« previous
next »
Print
Author
Topic: SPGL no longer runs with LWJGL 1.1 (Read 2771 times)
Nop
Newbie
Posts: 43
SPGL no longer runs with LWJGL 1.1
«
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
Re: SPGL no longer runs with LWJGL 1.1
«
Reply #1 on:
May 21, 2007, 16:05:27 »
have shavenpuppy lib not access that ?
alternatively heavy use of reflection
Logged
http://lwjgl.org
Nop
Newbie
Posts: 43
Re: SPGL no longer runs with LWJGL 1.1
«
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
Re: SPGL no longer runs with LWJGL 1.1
«
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
Re: SPGL no longer runs with LWJGL 1.1
«
Reply #4 on:
May 27, 2007, 14:06:50 »
Quote from: Nop on May 23, 2007, 00:38:33
Just kept commenting out code until it compiled. Seems to work anyway for now...
hehe ... this is how they build a release at microsoft
Logged
Orangy Tang
Talks Too Much
Posts: 199
Re: SPGL no longer runs with LWJGL 1.1
«
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
Re: SPGL no longer runs with LWJGL 1.1
«
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
Play Tribal Trouble
Orangy Tang
Talks Too Much
Posts: 199
Re: SPGL no longer runs with LWJGL 1.1
«
Reply #7 on:
June 06, 2007, 07:12:26 »
Ahaha, I was just wondering what the new Drawable was.
Thanks
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...