declare the variables at the beginning of the block
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Oct 2011 05:02:05 +0000 (05:02 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Oct 2011 05:02:05 +0000 (05:02 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64516 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_x11/evas_engine.c

index 5b39dca..361518a 100644 (file)
@@ -3192,6 +3192,9 @@ eng_gl_make_current(void *data __UNUSED__, void *surface, void *context)
    Render_Engine_GL_Surface *sfc;
    Render_Engine_GL_Context *ctx;
    int ret = 0;
+#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
+   Render_Engine_GL_Resource *rsc;
+#endif
 
    re  = (Render_Engine *)data;
    sfc = (Render_Engine_GL_Surface*)surface;
@@ -3220,7 +3223,6 @@ eng_gl_make_current(void *data __UNUSED__, void *surface, void *context)
 
    // Do a make current only if it's not already current
 #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
-   Render_Engine_GL_Resource *rsc;
    if ((rsc = eina_tls_get(resource_key)) == EINA_FALSE) return 0;
 
    if ((eglGetCurrentContext() != ctx->context) ||