[FIXED] Duplicate GL_RED

Started by ra4king, June 11, 2012, 19:29:02

Previous topic - Next topic

ra4king

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. :)
-Roi

Matthias

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.

princec

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 :)

spasi

Thanks for the report, it's been removed.