aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-09-30 13:45:55 +0100
committerEmil Velikov <[email protected]>2016-11-09 21:18:48 +0000
commit3652d1d5942a857f225700d67ce2c900396982f2 (patch)
tree885c99973b58c5d5b671af90d7e81a14b6267493 /src/egl
parent084105c213dbf4c309453b33a966aac6ae9242f3 (diff)
egl: remove explicit config_id management from dri2_add_config()
Currently we only saved the id to memcpy the whole _EGLConfig to write back the exact same id value. Remove the unneeded and confusing/misleading code. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index d9e2ad701b7..403f3d3b729 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -166,7 +166,6 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
unsigned int dri_masks[4] = { 0, 0, 0, 0 };
_EGLConfig *matching_config;
EGLint num_configs = 0;
- EGLint config_id;
int i;
_eglInitConfig(&base, disp, id);
@@ -286,7 +285,6 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
return NULL;
}
- config_id = base.ConfigID;
base.ConfigID = EGL_DONT_CARE;
base.SurfaceType = EGL_DONT_CARE;
num_configs = _eglFilterArray(disp->Configs, (void **) &matching_config, 1,
@@ -315,7 +313,6 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
memcpy(&conf->base, &base, sizeof base);
conf->base.SurfaceType = 0;
- conf->base.ConfigID = config_id;
_eglLinkConfig(&conf->base);
}