summaryrefslogtreecommitdiff
path: root/src/egl/drivers/dri2
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-06-30 17:10:10 +0800
committerChia-I Wu <olv@lunarg.com>2010-06-30 18:32:48 +0800
commit6717a313f26e42a7864f46f499637462a7cc3d57 (patch)
tree10e7bb1337b0f99f18dd8e36e0f9074c6d78744e /src/egl/drivers/dri2
parent106466783f986f532d3ee7af3a70f693c610ea04 (diff)
egl: Store configs in a dynamic array.
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 5a5e43bffe..df79a605df 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -620,7 +620,7 @@ dri2_add_configs_for_visuals(struct dri2_egl_display *dri2_dpy,
xcb_depth_next(&d);
}
- if (!disp->NumConfigs) {
+ if (!_eglGetArraySize(disp->Configs)) {
_eglLog(_EGL_WARNING, "DRI2: failed to create any config");
return EGL_FALSE;
}