GL11.glBindTexture(GL11.GL_TEXTURE_2D, 30); // testing line
IntBuffer o = ByteBuffer.allocateDirect(64).order(ByteOrder.nativeOrder()).asIntBuffer();
GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D, o);
int iBoundTexture = o.get();
System.out.println("tex " + iBoundTexture);
Always outputs 0 (zero).
Also outputs 0 without the testing line (should be another texture bound)
is GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D, o); not working, or am I doing anything wrong?
BTW it's lwjgl 2.3 Windows 7 64 bits if it matters