All GL surface tests use GLX. But OpenGL can be enabled without GLX if EGL ist used, so an additional check is needed.
Created attachment 138896 [details] [review] only build GL surface tests if GLX is enabled All GL surface tests use GLX. So with --enable-png (to enable tests in general) and --enable-gl (for CAIRO_HAS_GL_SURFACE) building fails with: [...] gl-surface-source.c:33:5: error: unknown type name 'Display' gl-surface-source.c:34:5: error: unknown type name 'GLXContext' [...] And similar errors for the other tests. Fix this by making sure the GL surface tests are only built is GLX is enabled. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/101.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.