-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Don't use GLEW in Fireworks #49341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Don't use GLEW in Fireworks #49341
Conversation
The Frame Buffer Object (FBO) feature is part of OpenGL since version 3.0 from 2008. Nowadays, we can therefore assume that this feature is always available. That means we don't have to use GLEW to check whether this feature is present. Like that, we can avoid using GLEW entirely, which is an implementation detail of OpenGL loading in ROOT that will soon go away. To make sure GLEW is not included anymore, this commit replaces includes of `TGLIncludes.h` with the OpenGL headers only, because `TGLIncludes.h` was including OpenGL plus GLEW. See also: * root-project/root#18471 * root-project/root#20294 (comment)
|
cms-bot internal usage |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49341/46717
|
|
A new Pull Request was created by @guitargeek for master. It involves the following packages:
@Dr15Jones, @alja, @cmsbuild, @makortel can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
please test |
|
+1 Size: This PR adds an extra 48KB to repository Comparison SummarySummary:
|
|
if (GLEW_EXT_framebuffer_object) { there are some bugs in this programs and please find and fix it properly. there are no extint |
|
Here the TGLIncludes also shielded us for OSX ... Fireworks/ packages are part of FWLite and we used to build binary releases of the event-display for mac and linux. I assume we will not attempt any new mac builds ... so this is all fine :) |
|
Thanks for the comment 👍 I was suspecting that macOS was the original reason |
|
Well, the original reason was it took forever for lxplus (and other HEP community resources) to upgrade to slc-6 (then in-house rhel-6 derivative, which shipped with mesa-gl that provided FBOs etc) and we needed things to work there as well as work really well on machines that already had proper GL support, in this case in particular, in the CMS control room. But I'm giving you a history lesson here 🙂 |
|
@alja , you need to use |
The Frame Buffer Object (FBO) feature is part of OpenGL since version 3.0 from 2008. Nowadays, we can therefore assume that this feature is always available. That means we don't have to use GLEW to check whether this feature is present.
Like that, we can avoid using GLEW entirely, which is an implementation detail of OpenGL loading in ROOT that will soon go away.
To make sure GLEW is not included anymore, this commit replaces includes of
TGLIncludes.hwith the OpenGL headers only, becauseTGLIncludes.hwas including OpenGL plus GLEW.See also:
FYI @smuzaffar @bellenot @osschar