Comments (2)
Ah I never added it to the docs...
Everytime you run glad it pulls the latest specifications from github and uses those to generate the loader, this means you need an active network connection and that between runs the output may change. It can also (very rarely) happen that upstream introduces a breaking change and your glad version doesn't support these specs anymore -> your build breaks.
The reproducible option uses packaged specifications instead, they are potentially a bit outdated but this means there are no more network requests and your build will never fail due to updated/changed upstream specifications.
So generally I recommend you to use the reproducible option if you use cmake, this does not matter much if you generate manually and check in the generated code (which is what you should do imo).
from glad.
Thanks for the clarification, this seems to actually be what I wanted a while ago. Pulling the latest specifications would sometimes cause the script to hang while fetching them, seemingly at random despite stable connection. Normally it is a quick <1min process, but sometimes it can take up to an hour, but there was no trace or error information of any sort, so I doubt it was a fault with the GLAD library..
I do however suggest adding the REPRODUCIBLE into the documentation (particularly into the CMakeLists.txt) as it seems to be an option that most people would want to opt into. Perhaps even making it the default and requiring a different explicit keyword to obtain the latest spec instead?
from glad.
Related Issues (20)
- Merge mode: Duplicate symbol _glad_GL_loader_handle HOT 2
- BUILD_SHARED_LIBS doesn't work HOT 1
- Vulkan loader doesn't handle extensions provided by layers HOT 2
- REPRODUCIBLE produces files in Mac format HOT 20
- glad2 doesn't build with HEADERONLY as it specifies .c sources
- How to add glad2 as a dependency using CMake with FetchContent_Declare and FetchContent_MakeAvailable?
- add argument names to function signatures HOT 2
- What `gl::GetUniformLocation` excepts (rust) HOT 1
- Q: How to build glad2? HOT 2
- The head guard of glad/gl.h won't work as it should when header only is selected in glad2 generator HOT 1
- Missing vulkan_video_codecs_common.h required by the vk_video headers HOT 1
- Is there an API to download platform specific headers and sources? HOT 2
- glad/egl.h is not generated
- GLX_*_ARB was not declared in scope HOT 2
- Glad.h missing HOT 1
- RFE: please start making github releases HOT 3
- GL_MAX_TEXTURE_COORDS missing HOT 2
- How to use Glad2? (gladLoadGL completely missing) HOT 6
- Parsing extensions fails with Mesa and GLES2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glad.