evas gl: Fix memory tracking
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Feb 2017 01:54:32 +0000 (10:54 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Feb 2017 01:56:15 +0000 (10:56 +0900)
See b16c961680579ad13 which by "fixing" indentation changed the
logic of the code. Yes the indentation was misleading (because of
the #if / #else) but the logic was correct. Anyway this is was not
a harmful issue as those memory trackers aren't really used.

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

index 9eb4c0d..b50adfc 100644 (file)
@@ -1344,8 +1344,8 @@ _surface_buffers_allocate(void *eng_data EINA_UNUSED, EVGL_Surface *sfc, int w,
              _renderbuffer_allocate(sfc->depth_stencil_buf,
                                     sfc->depth_stencil_fmt, w, h,
                                     sfc->msaa_samples);
-             sfc->buffer_mem[3] = w * h * 4;
           }
+        sfc->buffer_mem[3] = w * h * 4;
      }
    else
      {