diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-05-12 19:30:05 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-05-12 19:32:37 +0200 |
commit | a78f28f8a2efdb215092d32befc747e6c2ad75e9 (patch) | |
tree | 96990420ea6f4d412f804611fba7bdae2a02e937 | |
parent | 5de2c67ba7d62882fe2c5e2a307e58f4f637fadd (diff) |
egl_dri2: Discard similar configsconfig-fix
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d77f0ed67d..e2ae3ebf8e 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -200,10 +200,8 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id, else if (!double_buffer && !conf->dri_single_config) conf->dri_single_config = dri_config; else - /* a similar config type is already added - * => attach it as new config - */ - num_configs = 0; + /* a similar config type is already added (unlikely) => discard */ + return NULL; } else if (num_configs == 0) { conf = malloc(sizeof *conf); |