Evas GL: Skip direct rendering check if the surface is indirect

Note: These checks are only for debugging.
This commit is contained in:
Jean-Philippe Andre 2015-04-06 17:23:44 +09:00
parent 29cb8aeb59
commit f419555cd8
1 changed files with 4 additions and 0 deletions

View 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;
}