LWJGL Forum

Programming => OpenGL => Topic started by: mayaknife on June 16, 2013, 08:58:09

Title: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
Post by: mayaknife on June 16, 2013, 08:58:09
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.
Title: Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
Post by: Evil-Devil on June 16, 2013, 18:41:59
Should work fine when it compiles...have you the final release of 2.9.0?
Title: Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
Post by: mayaknife 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.
Title: Re: glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"
Post by: spasi on June 21, 2013, 13:41:01
Sounds like you have a different LWJGL version in your classpath during execution.