eglglessink: Fix setup chain logic
authorReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>
Fri, 14 Sep 2012 23:49:48 +0000 (20:49 -0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Oct 2012 12:35:10 +0000 (14:35 +0200)
commit2a84a72fe7c5771b157e18f9aed3796948ba1431
treebd9c126975d253dc9de2c17a4786b94283126bda
parent40d6cc2099746bbadac2fb8576028e863ba43cb6
eglglessink: Fix setup chain logic

Mostly a procedural reordering. Idea is to avoid
trying to setup a surface without a display.This
change relies on the asumption that:

1.- set_window_handle() can happen at any time
2.- setcaps will never get called before _start()
    is done.

If both conditions are meet the new procedure
should work as expected.
ext/eglgles/gsteglglessink.c
ext/eglgles/gsteglglessink.h