Generated File fails to compile

Create issue
Issue #21 resolved
Former user created an issue

Found another bug: lua LoadGen.lua -style=pointer_c -spec=gl -version=3.3 -profile?compatibility extest/3.3

produces the attached file. Which fails to compile, because line 2.4.15 defines an empty array:

static ogl_StrToExtMap ExtensionMap[] = { };

If I put a 0 in it, it compiles (and should work due to g_extensionMapSize=0), but maybe it would be nicer to remove it completely, along with FindExtEntry.

Btw.: Thanks for the 2 previous fixes. They came pretty quick.

Comments (1)

  1. Jason McKesson repo owner

    I've got what appears to be a fix for the problem in changelist 60193ba. I'll push out a 1.0.1 release later today or early tomorrow. But if you want the fix, just go to the Download page and download the 1.0 branch.

    Also, you may want to try the new noload_cpp (assuming you're using C++, of course) style that was introduced in 1.0. You don't even have to call an initialization function. Just call the OpenGL functions (when a context is current of course), and each function you use will be loaded as needed. The old and defunct GLee used to do this.

    I also tested noload_cpp with this fix and it does work (it also had the same problem).

  2. Log in to comment