LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: ra4king on June 11, 2012, 19:29:02

Title: [FIXED] Duplicate GL_RED
Post by: ra4king on June 11, 2012, 19:29:02
GL11 and GL30 both have a GL_RED constant with the same value. This causes a conflict error when statically importing both classes. Fix is to simply remove GL_RED from GL30 :)

Also, add a test case that *-imports all GLXX and extensions classes to test for duplicates.

This bug was found by theagentd and sproingie suggested the test case, so credit goes to them. :)
Title: Re: [BUG] Duplicate GL_RED
Post by: Matthias on June 11, 2012, 20:50:31
While it seems inconsistent to have constants/methods declared in GL30 which are already in GL10, removing the one from GL30 now would break existing application. I would defer that cleanup to LWJGL 3.0.
Title: Re: [BUG] Duplicate GL_RED
Post by: princec on June 11, 2012, 23:02:13
I believe this would only trivially break source code; the constants are otherwise inlined in to bytecode.

And let's face it, there's not a lot of LWJGL OpenGL3.0 code out there is there.

Cas :)
Title: Re: [BUG] Duplicate GL_RED
Post by: spasi on June 19, 2012, 10:54:44
Thanks for the report, it's been removed.