Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 20, 2013 10:30 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 03, 2009 6:46 pm 
Offline

Joined: Thu Nov 20, 2008 5:16 am
Posts: 76
I recently released my contest entry game, and found that it did not work at all on integrated graphics cards, like the X1300 on a lot of previous generation macbooks. It turns out that there is a call "GL13.glActiveTexture(GL13.GL_TEXTURE0);" inside Thingle that is not supported by the Java OpenGL bindings.

The message I got was:

Code:
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805] 2009-03-03 15:06:22,069 ERROR (?:?) - Fail on update:
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805] java.lang.IllegalStateException: Function is not supported
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:64)
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at org.lwjgl.opengl.GL13.glActiveTexture(GL13.java:115)
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at org.newdawn.slick.thingle.internal.lwjgl.LWJGLContext.doPreRender(LWJGLContext.java:241)
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at org.newdawn.slick.thingle.Thingle.doPreRender(Thingle.java:187)
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at org.newdawn.slick.thingle.Page.render(Page.java:224)
03.03.09 15:06:22 [0x0-0x164164].Reclaimed[2805]  at m3.states.TitleScreen.draw(Unknown Source)


And I fixed it by simply commenting out the line 241 in org.newdawn.slick.thingle.internal.lwjgl.LWJGLContext.java. I know that's probably not a great solution, as it doesn't really reset the active texture, but I guess I never used that call. This is kind of out of my area of expertise, but perhaps the call could be skipped if it's not supported?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 04, 2009 8:43 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Resolved in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group