cairo-gl: Still check the value of the macros

Just because they're defined doesn't mean they've been enabled.
This commit is contained in:
Bryce Harrington 2015-07-06 14:11:57 -07:00
parent c8b6c6066a
commit 06a2696d5f

View file

@ -92,7 +92,7 @@ cairo_public void
cairo_gl_device_set_thread_aware (cairo_device_t *device,
cairo_bool_t thread_aware);
#if defined(CAIRO_HAS_GLX_FUNCTIONS)
#if defined(CAIRO_HAS_GLX_FUNCTIONS) && CAIRO_HAS_GLX_FUNCTIONS
#include <GL/glx.h>
cairo_public cairo_device_t *
@ -110,7 +110,7 @@ cairo_gl_surface_create_for_window (cairo_device_t *device,
int width, int height);
#endif
#if defined(CAIRO_HAS_WGL_FUNCTIONS)
#if defined(CAIRO_HAS_WGL_FUNCTIONS) && CAIRO_HAS_WGL_FUNCTIONS
#include <windows.h>
cairo_public cairo_device_t *
@ -126,7 +126,7 @@ cairo_gl_surface_create_for_dc (cairo_device_t *device,
int height);
#endif
#if defined(CAIRO_HAS_EGL_FUNCTIONS)
#if defined(CAIRO_HAS_EGL_FUNCTIONS) && CAIRO_HAS_EGL_FUNCTIONS
#include <EGL/egl.h>
cairo_public cairo_device_t *