| Summary: | [GTK] [2.33.1] Fails to build when HAVE_OPENGL_ES_3 is on | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alberto Garcia <berto> | ||||||
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aperez, bugs-noreply, dino, ews-watchlist, graouts, kondapallykalyan, mcatanzaro | ||||||
| Priority: | P2 | ||||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Alberto Garcia
2021-05-17 06:41:10 PDT
Created attachment 428830 [details]
Patch
Comment on attachment 428830 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428830&action=review > Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLES.h:40 > +#if HAVE(OPENGL_ES_3) > +#include <GLES3/gl3.h> > +#endif // HAVE(OPENGL_ES_3) > #include <GLES2/gl2.h> > #include <GLES2/gl2ext.h> We want *both* the GLES3 header *and* the GLES2 headers...? Comment on attachment 428830 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428830&action=review >> Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLES.h:40 >> #include <GLES2/gl2ext.h> > > We want *both* the GLES3 header *and* the GLES2 headers...? IIUC any GLES3 implementation needs to *also* be a GLES2 implementation, and including both should be harmless. As a matter of fact libGLESv2.so is expected to provide both the GLES2 + GLES3 symbols, too :) Created attachment 428869 [details]
Patch v2
Actually gl3.h has the entire contents of gl2.h plus the extra definitions, so there's no reason to include both.
Here's an alternative patch.
(gl3ext.h is currently empty so I'm not including it)
(In reply to Alberto Garcia from comment #4) > Created attachment 428869 [details] > Patch v2 > > Actually gl3.h has the entire contents of gl2.h plus the extra definitions, > so there's no reason to include both. > > Here's an alternative patch. Actually this one doesn't work because WebKit uses symbols from gl2ext.h that are not defined elsewhere, so I'm committing the original patch. Committed r277609 (237826@main): <https://commits.webkit.org/237826@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428830 [details]. |