Skip to content

Instantly share code, notes, and snippets.

@dha-lo-jd
Created December 14, 2013 12:14
Show Gist options
  • Save dha-lo-jd/7958518 to your computer and use it in GitHub Desktop.
Save dha-lo-jd/7958518 to your computer and use it in GitHub Desktop.
int id;
int thisIdIs;
{
id = GL11.glGenTextures();
GL11.glBindTexture(GL11.GL_TEXTURE_2D, id);
thisIdIs = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);
System.out.println(id);
System.out.println(thisIdIs);
System.out.println(id == thisIdIs);//true
}
{
id = GL11.glGenTextures();
GL11.glBindTexture(GL11.GL_TEXTURE_2D, id);
thisIdIs = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);
System.out.println(id);
System.out.println(thisIdIs);
System.out.println(id == thisIdIs);//true
}
{
id = GL11.glGenTextures();
GL11.glBindTexture(GL11.GL_TEXTURE_2D, id);
thisIdIs = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);
System.out.println(id);
System.out.println(thisIdIs);
System.out.println(id == thisIdIs);//true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment