[FIX] evas_gl func. gl error code. 24/26424/2
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 22 Aug 2014 08:53:10 +0000 (12:53 +0400)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Fri, 12 Sep 2014 11:40:22 +0000 (04:40 -0700)
glGetError call removed

Change-Id: I2029d60e1232c90d2202cc324d7185afdb2f1c4b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
probe_graphics/da_evas_gl.c

index 6680bf85003a4b5db885f82d5db2af4ab981e370..baa13f358e1423a3e7e54d3b7b4a5c86f5c5e2e5 100644 (file)
@@ -40,7 +40,6 @@ void evas_gl_free(Evas_GL *evas_gl)
        typedef void (*methodType)(Evas_GL *evas_gl);
        BEFORE_EVAS_GL(evas_gl_free);
        evas_gl_freep(evas_gl);
-       GL_GET_ERROR();
        AFTER('v', NO_RETURN_VALUE, APITYPE_CONTEXT, "", "p",
              voidp_to_uint64(evas_gl));
 }
@@ -50,7 +49,6 @@ void evas_gl_config_free(Evas_GL_Config *cfg)
        typedef void (*methodType)(Evas_GL_Config *cfg);
        BEFORE_EVAS_GL(evas_gl_config_free);
        evas_gl_config_freep(cfg);
-       GL_GET_ERROR();
        AFTER('v', NO_RETURN_VALUE, APITYPE_CONTEXT, "", "p",
              voidp_to_uint64(cfg));
 }
@@ -60,7 +58,6 @@ void evas_gl_surface_destroy(Evas_GL *evas_gl, Evas_GL_Surface *surf)
        typedef void (*methodType)(Evas_GL *evas_gl, Evas_GL_Surface *surf);
        BEFORE_EVAS_GL(evas_gl_surface_destroy);
        evas_gl_surface_destroyp(evas_gl, surf);
-       GL_GET_ERROR();
        AFTER('v', NO_RETURN_VALUE, APITYPE_CONTEXT, "", "pp",
              voidp_to_uint64(evas_gl), voidp_to_uint64(surf));
 }
@@ -70,7 +67,6 @@ void evas_gl_context_destroy(Evas_GL *evas_gl, Evas_GL_Context *ctx)
        typedef void (*methodType)(Evas_GL *evas_gl, Evas_GL_Context *ctx);
        BEFORE_EVAS_GL(evas_gl_context_destroy);
        evas_gl_context_destroyp(evas_gl, ctx);
-       GL_GET_ERROR();
        AFTER('v', NO_RETURN_VALUE, APITYPE_CONTEXT, "", "pp",
              voidp_to_uint64(evas_gl), voidp_to_uint64(ctx));
 }
@@ -80,7 +76,6 @@ Evas_GL *evas_gl_new(Evas *e)
        typedef Evas_GL *(*methodType)(Evas *e);
        BEFORE_EVAS_GL(evas_gl_new);
        Evas_GL *res = evas_gl_newp(e);
-       GL_GET_ERROR();
        AFTER('p', voidp_to_uint64(res), APITYPE_CONTEXT, "", "p",
              voidp_to_uint64(e));
        return res;
@@ -91,7 +86,6 @@ Evas_GL_Config *evas_gl_config_new(void)
        typedef Evas_GL_Config *(*methodType)(void);
        BEFORE_EVAS_GL(evas_gl_config_new);
        Evas_GL_Config *res = evas_gl_config_newp();
-       GL_GET_ERROR();
        AFTER_NO_PARAM('p', voidp_to_uint64(res), APITYPE_CONTEXT, "");
        return res;
 }
@@ -104,7 +98,6 @@ Evas_GL_Surface *evas_gl_surface_create(Evas_GL *evas_gl, Evas_GL_Config *cfg,
                                               int w, int h);
        BEFORE_EVAS_GL(evas_gl_surface_create);
        Evas_GL_Surface *res = evas_gl_surface_createp(evas_gl, cfg, w, h);
-       GL_GET_ERROR();
        AFTER('p', voidp_to_uint64(res), APITYPE_CONTEXT, "", "ppdd",
              voidp_to_uint64(evas_gl), voidp_to_uint64(cfg), w, h);
        return res;
@@ -117,7 +110,6 @@ Evas_GL_Context *evas_gl_context_create(Evas_GL *evas_gl,
                                               Evas_GL_Context *share_ctx);
        BEFORE_EVAS_GL(evas_gl_context_create);
        Evas_GL_Context *res = evas_gl_context_createp(evas_gl, share_ctx);
-       GL_GET_ERROR();
        AFTER('p', voidp_to_uint64(res), APITYPE_CONTEXT, "", "pp",
              voidp_to_uint64(evas_gl), voidp_to_uint64(share_ctx));
        return res;
@@ -130,7 +122,6 @@ Eina_Bool evas_gl_make_current(Evas_GL *evas_gl, Evas_GL_Surface *surf,
                                        Evas_GL_Context *ctx);
        BEFORE_EVAS_GL(evas_gl_make_current);
        Eina_Bool res = evas_gl_make_currentp(evas_gl, surf, ctx);
-       GL_GET_ERROR();
        AFTER('b', res, APITYPE_CONTEXT, "", "ppp",
              voidp_to_uint64(evas_gl), voidp_to_uint64(surf), voidp_to_uint64(ctx));
        return res;
@@ -141,7 +132,6 @@ const char *evas_gl_string_query(Evas_GL *evas_gl, int name)
        typedef const char *(*methodType)(Evas_GL *evas_gl, int name);
        BEFORE_EVAS_GL(evas_gl_string_query);
        const char *res = evas_gl_string_queryp(evas_gl, name);
-       GL_GET_ERROR();
        AFTER('s', res, APITYPE_CONTEXT, "", "pd",
              voidp_to_uint64(evas_gl), name);
        return res;
@@ -152,7 +142,6 @@ Evas_GL_Func evas_gl_proc_address_get(Evas_GL *evas_gl, const char *name)
        typedef Evas_GL_Func(*methodType)(Evas_GL *evas_gl, const char *name);
        BEFORE_EVAS_GL(evas_gl_proc_address_get);
        Evas_GL_Func res = evas_gl_proc_address_getp(evas_gl, name);
-       GL_GET_ERROR();
        AFTER('p', voidp_to_uint64(res), APITYPE_CONTEXT, "", "ps",
              voidp_to_uint64(evas_gl), name);
        return res;
@@ -165,7 +154,6 @@ Eina_Bool evas_gl_native_surface_get(Evas_GL *evas_gl, Evas_GL_Surface *surf,
                                   Evas_Native_Surface *ns);
        BEFORE_EVAS_GL(evas_gl_native_surface_get);
        Eina_Bool res = evas_gl_native_surface_getp(evas_gl, surf, ns);
-       GL_GET_ERROR();
        AFTER('b', res, APITYPE_CONTEXT, "", "ppp",
              voidp_to_uint64(evas_gl), voidp_to_uint64(surf), voidp_to_uint64(ns));
        return res;
@@ -181,7 +169,6 @@ Evas_GL_API *evas_gl_api_get(Evas_GL *evas_gl)
        save_orig_gl_api_list(res);
        change_gl_api_list(res);
 
-       GL_GET_ERROR();
        AFTER('p', res, APITYPE_CONTEXT, "", "p",
              voidp_to_uint64(evas_gl));
        return res;