egl_dri2: Reorganize the EGLImage constructors to share more code
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Jul 2012 04:39:25 +0000 (00:39 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Jul 2012 18:22:07 +0000 (14:22 -0400)
commit5f5746a692e8f279dcba9e25ad0bb2c41a546f6e
treeab025b13ea29b501d520f83a1e1b3661c2658c52
parent1bb15c0a089cb268960d164d354ee6d942b4238f
egl_dri2: Reorganize the EGLImage constructors to share more code

We factor out all the EGL book-keeping into dri2_create_image() and
simplify the wayland case by using dupImage.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/egl/drivers/dri2/egl_dri2.c