diff options
author | Chia-I Wu <[email protected]> | 2010-07-31 00:00:49 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-07-31 17:49:32 +0800 |
commit | 6c7e0b95a4a16d268aa3ca74c5c8407779533314 (patch) | |
tree | 533bf5ee540c5bc55518d39c424db8f0ed28a0a4 /src/egl/main/eglmode.c | |
parent | 3cc471e429675e82fcc37c6efa2c5e880d811b84 (diff) |
egl: Add checks for EGL_MESA_screen_surface.
This allows Mesa EGL to be compiled with eglext.h that does not define
EGL_MESA_screen_surface.
Diffstat (limited to 'src/egl/main/eglmode.c')
-rw-r--r-- | src/egl/main/eglmode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/main/eglmode.c b/src/egl/main/eglmode.c index 859e9318b4a..37594cdb42d 100644 --- a/src/egl/main/eglmode.c +++ b/src/egl/main/eglmode.c @@ -10,6 +10,9 @@ #include "eglstring.h" +#ifdef EGL_MESA_screen_surface + + #define MIN2(A, B) (((A) < (B)) ? (A) : (B)) @@ -353,3 +356,6 @@ _eglQueryModeStringMESA(_EGLDriver *drv, _EGLDisplay *dpy, _EGLMode *m) { return m->Name; } + + +#endif /* EGL_MESA_screen_surface */ |