Fixes to EGL_KHR_create_context support on Android and PVR SKD 3.1 emulator: * Check the result of eglQueryString for NULL to avoid crash if none is returned * Fix compilation errors on Android. * Rework the code a bit for readability.
Fixes to EGL_KHR_create_context support on Android and PVR SKD 3.1 emulator: * Check the result of eglQueryString for NULL to avoid crash if none is returned * Fix compilation errors on Android. * Rework the code a bit for readability.


gougoudetao/OpenglES,leonhe/opengles3-book,lyntel/opengles3-book,Bvnkame/opengles3-book,weizhenwei/opengles3-book,micrologic/opengles3-book,galek/opengles3-book,galek/opengles3-book,micrologic/opengles3-book,zhakui/opengles3-book,zhakui/opengles3-book,RainbowYou/opengles3-book,lyntel/opengles3-book,Bvnkame/opengles3-book,weizhenwei/opengles3-book,danginsburg/opengles3-book,lyntel/opengles3-book,RainbowYou/opengles3-book,micrologic/opengles3-book,zhakui/opengles3-book,ryoenji/opengles3-book,galek/opengles3-book,leonhe/opengles3-book,danginsburg/opengles3-book,RainbowYou/opengles3-book,gougoudetao/OpenglES,gougoudetao/OpenglES,ryoenji/opengles3-book,danginsburg/opengles3-book,weizhenwei/opengles3-book,ryoenji/opengles3-book,leonhe/opengles3-book,Bvnkame/opengles3-book