Hello Guest

glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"

  • 3 Replies
  • 4962 Views
I'm using version 2.9.0 of lwjgl. According to the docs glGetShader(int, int) is deprecated and replaced by glGetShaderi(int, int). If I use glGetShader(int, int) I get a deprecation warning during compile but the program works properly. If I use glGetShaderi(int, int) then the warning goes away but during execution I get the following:

    Exception in thread "main" java.lang.NoSuchMethodError: org.lwjgl.opengl.GL20.glGetShaderi(II)I

Any ideas as to what the problem might be?

Thanx.

Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
« Reply #1 on: June 16, 2013, 18:41:59 »
Should work fine when it compiles...have you the final release of 2.9.0?
« Last Edit: June 16, 2013, 18:43:40 by Evil-Devil »

Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
« Reply #2 on: June 16, 2013, 19:06:16 »
It compiles without any problems.

I downloaded 2.9.0 last night from here: http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.0/lwjgl-2.9.0.zip/download

I don't know if its the "final" version, but its dated from April 21st, which sounds pretty final.

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
« Reply #3 on: June 21, 2013, 13:41:01 »
Sounds like you have a different LWJGL version in your classpath during execution.