Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  glCreateShader not available in JSR 231  (Read 1628 times)
0 Members and 1 Guest are viewing this topic.
Offline kitfox

Junior Member




Java games rock!


« Posted 2011-06-30 14:56:16 »

I have another weird porting error for JSR 231.  While trying to diagnose another problem, I tried getting a program I'm developing up and running on my laptop.  It has a cheap ATI Mobility Radeon HD 2300 and runs OpenGL 2.1.7.  Now while my program runs fine on my desktop, on my laptop I get an exception whenever I try to call glCreateShader.  However, my laptop is able to handle shaders and I'm able to call glCreateShader under JOGL 1.1.1a (albeit in a different program).  (I've not run my current program on my laptop before, so I can't say if this call would work for it under JOGL 1.1.1)

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Method "glCreateShader" not available
        at jogamp.opengl.gl4.GL4bcImpl.glCreateShader(GL4bcImpl.java:3115)
        at javax.media.opengl.DebugGL2.glCreateShader(DebugGL2.java:28623)
        at com.kitfox.coyote.renderer.jogl.GLWrapperJOGL.glCreateShader(GLWrapperJOGL.java:189)
        at com.kitfox.coyote.renderer.CyMaterial.loadShader(CyMaterial.java:38)
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #1 - Posted 2011-06-30 19:23:15 »

Hi!

I succeeded in using glCreateShader with NVIDIA Quadro FX and JOGL 2.0. Can you try again without using DebugGL2?

Offline kitfox

Junior Member




Java games rock!


« Reply #2 - Posted 2011-06-30 19:55:40 »

I tried without the DebugGL2.  Same error.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #3 - Posted 2011-06-30 21:11:13 »

Try to display the OpenGL version used by JOGL so that we can check whether it uses the proper driver.

Offline kitfox

Junior Member




Java games rock!


« Reply #4 - Posted 2011-06-30 22:16:47 »

1  
System.err.println("GL version:" + gl.glGetString(GL.GL_VERSION));


is giving me

1  
GL version:1.1.0


Not sure why.  JOGL 1.1.1 reports

1  
2.1.7412 Release.
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #5 - Posted 2011-07-01 00:00:52 »

1  
System.err.println("GL version:" + gl.glGetString(GL.GL_VERSION));


is giving me

1  
GL version:1.1.0


Not sure why.  JOGL 1.1.1 reports

1  
2.1.7412 Release.

JOGL 2.0 seems to use the default Microsoft driver that supports only OpenGL 1.1.0. Talk about it to Sven on the official JogAmp forum, he will be able to help you as we know the symptom.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (49 views)
2013-05-17 21:29:12

alaslipknot (58 views)
2013-05-16 21:24:48

gouessej (88 views)
2013-05-16 00:53:38

gouessej (86 views)
2013-05-16 00:17:58

theagentd (95 views)
2013-05-15 15:01:13

theagentd (88 views)
2013-05-15 15:00:54

StreetDoggy (133 views)
2013-05-14 15:56:26

kutucuk (154 views)
2013-05-12 17:10:36

kutucuk (154 views)
2013-05-12 15:36:09

UnluckyDevil (164 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.076 seconds with 21 queries.