Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (575)
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 2501 times)
0 Members and 1 Guest are viewing this topic.
Offline kitfox

Junior Duke




Java games rock!


« Posted 2011-06-30 12: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
« Reply #1 - Posted 2011-06-30 17: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 Duke




Java games rock!


« Reply #2 - Posted 2011-06-30 17: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
« Reply #3 - Posted 2011-06-30 19: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 Duke




Java games rock!


« Reply #4 - Posted 2011-06-30 20: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
« Reply #5 - Posted 2011-06-30 22: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.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (35 views)
2014-10-17 03:59:02

Norakomi (26 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (26 views)
2014-10-15 16:18:58

TehJavaDev (50 views)
2014-10-14 00:39:48

TehJavaDev (52 views)
2014-10-14 00:35:47

TehJavaDev (40 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (76 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!