glad2 debug build recompiles every launch #450
Closed
CuriousRubick
started this conversation in
General
Replies: 2 comments
-
Hey, I have no idea. There is nothing in glad which is conditional on debug/release either. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe I solved this problem. Looks like I was compiling the wrong mix of .h files due to not updating my gitignore when switching over to glad2. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently updated to glad2 and noticed that with the 'debug' option my program recompiles every source file that includes gl.h every time I run the program from vscode. Recompilation occurs even if I select "run without debugging." Happens in both linux and windows (gcc, clang and msvc). Non-debug works as expected.
Current options from https://gen.glad.sh/ : "c/c++, gl 4.1, core, all ext, alias, loader"
Any idea what's going on?
edit
I link statically via cmake like this:
add_library(glad STATIC ${PATH}/src/gl.c)
target_link_libraries(${APP_NAME} glad)
Also linking glfw.
Beta Was this translation helpful? Give feedback.
All reactions