wayland/egl: Ensure correct buffer size when allocating
authorJonas Ådahl <jadahl@gmail.com>
Mon, 6 May 2019 07:54:27 +0000 (09:54 +0200)
committerEric Engestrom <eric@engestrom.ch>
Tue, 14 May 2019 15:33:35 +0000 (15:33 +0000)
commit903ad59407ac965f9fbc8c0c397cc6f09263a2b8
treef91f202a242baf4e9080351d89614c4f7ffdb5c5
parent73055ae1c9f481e439ae2c91bd23652d91b4b42a
wayland/egl: Ensure correct buffer size when allocating

Whenever a buffer is allocated, e.g. by the first draw call or EGL call after a
buffer swap, make sure the size is up to date. Prior to this commit, we
failed to do so when querying the buffer age, or swapping buffers
without any prior EGL call or draw call.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/platform_wayland.c