[FIX] eglSwapBuffers probe fix
Probing this function caused black screen for OpenGL applications
before.
The matter of the problem:
- eglSwapBuffers is just a macro in inc/egl_macro.h
(framework/osp/uifw):
#define eglSwapBuffers _SglSwapBuffers
- _SglSwapBuffers is a wrapper that calls true eglSwapBuffers inside;
- we used to call eglSwapBuffers where _SglSwapBuffers must be called.
This caused an error (EGL_BAD_SURFACE).
In order to probe eglSwapBuffers function we need to undef the macro
first.
Moreover, eglSwapBuffers is not called at Emulator (GlesShader sample
application). So I added _SglSwapBuffers function itself as well.
Minor fix: for EGL functions eglGetError (insted of glGetError) should
be called.
Change-Id: I6a99c67a8f28fc2cca3ea0ea78de7afb252cb9c1
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>