diff options
author | Varad Gautam <[email protected]> | 2015-10-07 09:48:15 +0530 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-07 15:05:28 +0100 |
commit | deb1765ec626b6177f1bf7b2a24f10ed79cf6243 (patch) | |
tree | 170fff5c63c62d0cb05a598c7ad94ac8a13e265d /src/egl/drivers | |
parent | f988eff37991272b3e685112136a8b2ae06386bf (diff) |
egl: move memcpy to bring conf->base operations together
Signed-off-by: Varad Gautam <[email protected]>
Suggested-by: Emil Velikov <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 2 |
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 aff21814be5..f600d1b606d 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -301,7 +301,6 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id, if (conf == NULL) return NULL; - memcpy(&conf->base, &base, sizeof base); if (double_buffer) { if (srgb) conf->dri_srgb_double_config = dri_config; @@ -314,6 +313,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id, conf->dri_single_config = dri_config; } + memcpy(&conf->base, &base, sizeof base); conf->base.SurfaceType = 0; conf->base.ConfigID = config_id; |