gl-renderer: Make dummy surface current after all outputs are gone
authorArmin Krezović <krezovic.armin@gmail.com>
Fri, 5 Aug 2016 13:28:30 +0000 (15:28 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 11 Aug 2016 08:36:19 +0000 (11:36 +0300)
commit36d699a16415307de3c5a77ff89567b79595f970
treea162dae7e5e089cf2839df01c4ce629cb583f22f
parente54038497d1aaa61050a04ef274219da5ca41988
gl-renderer: Make dummy surface current after all outputs are gone

When all outputs are gone, there are no current read/write
surfaces associated with a context. This makes the previously
created dummy surface current until an output gets attached
to avoid any potential crashes.

v2:

- Remove unnecessary objects

Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/gl-renderer.c