Hi!
I have a big problem with a new game I'm writing
on. When I use glGenTextures I get this exception:
QuoteException in thread "main" java.lang.UnsatisfiedLinkError: nglGenTextures
at org.lwjgl.opengl.CoreGL11.nglGenTextures(Native Method)
at org.lwjgl.opengl.CoreGL11.glGenTextures(Unknown Source)
at Font.<init>(Font.java:37)
at Breakout3D.<init>(Breakout3D.java:45)
at Breakout3D.main(Breakout3D.java:71)
Press any key to continue...
I'm using LWJGL 0.8.
WiESi
Hmm, a bit puzzled - the error seems very real, but looking in the source for 0.8:
public static void glGenTextures(IntBuffer textures) {
nglGenTextures(textures.remaining(), textures, textures.position());
}
private static native void nglGenTextures(int n, IntBuffer textures, int textures_offset);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL11_nglGenTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset)
{
GLuint *address = offset + (GLuint *)env->GetDirectBufferAddress(buffer);
glGenTextures((GLint) p0, address);
CHECK_GL_ERROR
}
and besides, glGenTextures is used *quite* often, and you're the first to report this... you have somekind of weird homemade build?
This is almost certainly an older version of LWJGL hiding somewhere in the library path. Do a search for lwjgl_d.dll and lwjgl.dll and make sure you've only got one of each!
Cas :)
Quote from: "princec"This is almost certainly an older version of LWJGL hiding somewhere in the library path. Do a search for lwjgl_d.dll and lwjgl.dll and make sure you've only got one of each!
Cas :)
I already did and replaced all those dll's through the new one. I also
tried LWJGL 0.7 and there was the same problem.
WiESi
EDIT: Can somebody please upload the DLLs and the JAR-file. Maybe
I've got a broken DLL or something...
EDIT: I solved the problem. Before calling GL-Functions I have to
open a window :lol: