Mesa (master): egl_xdri: Report only OpenGL support.
Chia-I Wu
olv at kemper.freedesktop.org
Fri Jan 22 07:07:22 UTC 2010
Module: Mesa
Branch: master
Commit: 3c9bf648ac8f837f49f426af791aadb6a2589f08
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c9bf648ac8f837f49f426af791aadb6a2589f08
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Fri Jan 22 14:53:31 2010 +0800
egl_xdri: Report only OpenGL support.
It reported OpenGL ES support because some demos did not set
EGL_RENDERABLE_TYPE correctly. The demos are fixed.
---
src/egl/drivers/xdri/egl_xdri.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/egl/drivers/xdri/egl_xdri.c b/src/egl/drivers/xdri/egl_xdri.c
index e076114..7602df1 100644
--- a/src/egl/drivers/xdri/egl_xdri.c
+++ b/src/egl/drivers/xdri/egl_xdri.c
@@ -167,14 +167,10 @@ get_drawable_size(Display *dpy, Drawable d, uint *width, uint *height)
static EGLBoolean
convert_config(_EGLConfig *conf, EGLint id, const __GLcontextModes *m)
{
- static const EGLint all_apis = (EGL_OPENGL_ES_BIT |
- EGL_OPENGL_ES2_BIT |
- EGL_OPENVG_BIT |
- EGL_OPENGL_BIT);
EGLint val;
_eglInitConfig(conf, id);
- if (!_eglConfigFromContextModesRec(conf, m, all_apis, all_apis))
+ if (!_eglConfigFromContextModesRec(conf, m, EGL_OPENGL_BIT, EGL_OPENGL_BIT))
return EGL_FALSE;
if (m->doubleBufferMode) {
@@ -302,10 +298,7 @@ xdri_eglInitialize(_EGLDriver *drv, _EGLDisplay *dpy,
create_configs(dpy, psc->configs, first_id);
dpy->DriverData = xdri_dpy;
- dpy->ClientAPIsMask = (EGL_OPENGL_BIT |
- EGL_OPENGL_ES_BIT |
- EGL_OPENGL_ES2_BIT |
- EGL_OPENVG_BIT);
+ dpy->ClientAPIsMask = EGL_OPENGL_BIT;
/* we're supporting EGL 1.4 */
*minor = 1;
More information about the mesa-commit
mailing list