summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-25 22:54:34 +0800
committerBrian Paul <brianp@vmware.com>2009-09-29 08:10:47 -0600
commit358c5a8fd1d518930c3e87316a2c743a661ac553 (patch)
tree4512d0167ce7a3e478885fde2c1126ee14149c7e /src/egl/drivers
parent7cda8ea44c2b65265cefa79bd29a4990ac81cee6 (diff)
downloadexternal_mesa3d-358c5a8fd1d518930c3e87316a2c743a661ac553.zip
external_mesa3d-358c5a8fd1d518930c3e87316a2c743a661ac553.tar.gz
external_mesa3d-358c5a8fd1d518930c3e87316a2c743a661ac553.tar.bz2
egl: Introduce config keys.
Config keys are almost config attributes. A valid config attribute is a valid config key, but a valid config key may not be a valid config attribute. This commit does not distinguish the differences. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/demo/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/demo/demo.c b/src/egl/drivers/demo/demo.c
index aea4894..0933c0b 100644
--- a/src/egl/drivers/demo/demo.c
+++ b/src/egl/drivers/demo/demo.c
@@ -177,7 +177,7 @@ demoCreatePixmapSurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, Nat
}
}
- if (conf->Attrib[EGL_SURFACE_TYPE - FIRST_ATTRIB] == 0) {
+ if (GET_CONFIG_ATTRIB(conf, EGL_SURFACE_TYPE) == 0) {
_eglError(EGL_BAD_MATCH, "eglCreatePixmapSurface");
return NULL;
}