diff options
author | Emil Velikov <[email protected]> | 2017-08-27 11:20:33 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-29 13:43:04 +0100 |
commit | 10efd6fe7e914f5093054ff20cc6aebca2e54128 (patch) | |
tree | cdb42a83e1373432acf25e9c2a89810d7fd6d351 /src/egl/drivers/dri2 | |
parent | da100fe6970ac8ca34ced69c6c5dfe8a4f5bec90 (diff) |
egl/wayland: remove dri2_surf width/height double init.
The dimensions are already set [to 0 or the value provided by the
attributes list] by the _eglInitSurface() call further up.
The values are updated, as the DRI driver calls the DRI2/IMAGE_LOADER'
get_buffers, shortly before making use of the values.
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 017a2eb98ca..dee9325fac4 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -198,9 +198,6 @@ dri2_wl_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp, dri2_surf->wl_win->private = dri2_surf; dri2_surf->wl_win->destroy_window_callback = destroy_window_callback; - dri2_surf->base.Width = -1; - dri2_surf->base.Height = -1; - config = dri2_get_dri_config(dri2_conf, EGL_WINDOW_BIT, dri2_surf->base.GLColorspace); |