[FIX] eglSwapBuffers probe fix
authorNikita Kalyazin <n.kalyazin@samsung.com>
Tue, 17 Sep 2013 13:30:34 +0000 (17:30 +0400)
committerNikita Kalyazin <n.kalyazin@samsung.com>
Wed, 18 Sep 2013 06:51:43 +0000 (10:51 +0400)
commit99e3dcb6d0ab7657b5ce01170d31453e6a3d0360
treefbacecae1219e9bfc07367cb6a07ca4a188ff372
parent06ef0f178dd3ba5cd671ed5eb82d2f6807f9bc7b
[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>
include/api_id_mapping.h
probe_graphics/da_gles20.cpp
probe_graphics/da_gles20.h
scripts/api_names.txt