Evas GL: Add EVGL_FUNC_BEGIN() to GLES 3 functions as well
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 18 Aug 2015 09:16:10 +0000 (18:16 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 18 Aug 2015 09:31:40 +0000 (18:31 +0900)
This call ensures that the context is current (context restore).

src/modules/evas/engines/gl_common/evas_gl_api.c

index a20eb52..7af887d 100644 (file)
@@ -1020,12 +1020,14 @@ static ret evgl_##name param1 { \
 // Open GLES 3.0 APIs
 #define _EVASGL_FUNCTION_BEGIN(ret, name, param1, param2) \
 static ret evgl_gles3_##name param1 { \
+   EVGL_FUNC_BEGIN(); \
    if (!_gles3_api.name) return (ret)0; \
    return _gles3_api.name param2; \
 }
 
 #define _EVASGL_FUNCTION_BEGIN_VOID(name, param1, param2) \
 static void evgl_gles3_##name param1 { \
+   EVGL_FUNC_BEGIN(); \
    if (!_gles3_api.name) return; \
    _gles3_api.name param2; \
 }