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/eglconfig.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/eglconfig.c')
-rw-r--r-- | src/egl/main/eglconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index a9af3200976..ea8e47d02bb 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -314,8 +314,10 @@ _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching) EGL_VG_ALPHA_FORMAT_PRE_BIT | EGL_MULTISAMPLE_RESOLVE_BOX_BIT | EGL_SWAP_BEHAVIOR_PRESERVED_BIT; +#ifdef EGL_MESA_screen_surface if (conf->Display->Extensions.MESA_screen_surface) mask |= EGL_SCREEN_BIT_MESA; +#endif break; case EGL_RENDERABLE_TYPE: case EGL_CONFORMANT: |