egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}
authorEric Engestrom <eric@engestrom.ch>
Mon, 25 Sep 2017 21:35:24 +0000 (22:35 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 18 Oct 2017 16:25:41 +0000 (17:25 +0100)
commit8cb84c8477a57ed05d703669fee1770f31b76ae6
treec178c86f08560531d35da8740e7023baadd97c2a
parent4893673b155b9ff2e0fc0730b214ba3bcbe75a89
egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}

Note: dropping the EGL_BAD_ALLOC in egl_haiku because it's
overwritten by the EGL_NOT_INITIALIZED in eglInitialize().

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/haiku/egl_haiku.cpp
src/egl/main/README.txt
src/egl/main/egldriver.c
src/egl/main/egldriver.h