LWJGL bug: Duplicate enums in GL43

Hello.

The latest nightly LWJGL version contains duplicate enums in GL43.

GL_TEXTURE_1D
GL_TEXTURE_1D_ARRAY
GL_TEXTURE_2D
GL_TEXTURE_2D_ARRAY
GL_TEXTURE_3D
GL_TEXTURE_3D_ARRAY
GL_TEXTURE_BUFFER
GL_TEXTURE_COMPRESSED
GL_TEXTURE_CUBE_MAP
GL_TEXTURE_CUBE_MAP_ARRAY
GL_TEXTURE_RECTANGLE

I’m not sure this is an exhaustive list. Preferably you’d want to develop a script which detects duplicates and only keeps the one in the oldest OpenGL version.

Are you sure these are duplicates?
I mean, there is gl_color_buffer and gl_color_buffer_bit
Only one of them works properly in gl clear.

I don’t think that’s the point trollwarrior. Those enums that agent listed are available in prior versions of LWJGL.

Hmmm you’re right ofcourse. I checked the int values and they are the same. I don’t think there is a problem with it being a duplicate. I mean, it might just make things easier… Probably was put there on purpose, so you don’t have to import GL11 at all (you know, deprecated)


import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL43.*;

And bam, you get ambiguous field errors every time you try to use one of the duplicate enums.

Please try the next nightly build, I have removed all duplicate tokens from the core GL classes.

Thanks! I’ll do that!

EDIT: Yes, much better! Thanks a lot!