Evas GL: Skip direct rendering check if the surface is indirect
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 6 Apr 2015 08:23:44 +0000 (17:23 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 6 Apr 2015 08:24:43 +0000 (17:24 +0900)
Note: These checks are only for debugging.

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

index 2dfa171..1254224 100644 (file)
@@ -1469,6 +1469,10 @@ _evgl_not_in_pixel_get(void)
    if (!ctx || !ctx->current_sfc)
      return 0;
 
+   // if indirect rendering, we don't care. eg. elm_glview's init cb
+   if (!ctx->current_sfc->direct_fb_opt)
+     return 0;
+
    return !rsc->direct.in_get_pixels;
 }