egl_dri2: check the surface type in platform_android
authorChia-I Wu <olv@lunarg.com>
Fri, 26 Aug 2011 14:09:56 +0000 (22:09 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 31 Aug 2011 03:58:34 +0000 (11:58 +0800)
commitc8e18f85da9b41e79b67c39450917b46b6de8fb4
tree5d5a01bbeb183fe1be377999555b920d053a509d
parent384f228a2573ce592854f58c45564f75419fe987
egl_dri2: check the surface type in platform_android

Check the surface type is EGL_WINDOW_BIT before doing anything, in
preparation for pbuffer support.

Reviewed-by: Chad Versace <chad@chad-versace.us>
src/egl/drivers/dri2/platform_android.c