forked from enlightenment/efl
evas/gl_x11: add env variables for disable partial rendering
Summary: add 'EVAS_GL_PARTIAL_DISABLE' environment variables for disable partial rendering Reviewers: cedric, jpeg Reviewed By: jpeg Subscribers: mer.kim, spacegrapher, cedric, wonsik Differential Revision: https://phab.enlightenment.org/D2183 Signed-off-by: Jean-Philippe ANDRE <jpeg@videolan.org> jpeg added atoi(s) and copied the code for gl_drm and wayland_egl.
This commit is contained in:
parent
69fa047048
commit
9a767921c5
|
@ -218,8 +218,15 @@ gl_extn_veto(Render_Engine *re)
|
|||
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
|
||||
if (str)
|
||||
{
|
||||
const char *s;
|
||||
if (getenv("EVAS_GL_INFO"))
|
||||
printf("EGL EXTN:\n%s\n", str);
|
||||
// Disable Partial Rendering
|
||||
if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
|
||||
{
|
||||
extn_have_buffer_age = 0;
|
||||
glsym_eglSwapBuffersWithDamage = NULL;
|
||||
}
|
||||
if (!strstr(str, "EGL_EXT_buffer_age"))
|
||||
extn_have_buffer_age = 0;
|
||||
if (!strstr(str, "EGL_EXT_swap_buffers_with_damage"))
|
||||
|
|
|
@ -1397,8 +1397,15 @@ gl_extn_veto(Render_Engine *re)
|
|||
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
|
||||
if (str)
|
||||
{
|
||||
const char *s;
|
||||
if (getenv("EVAS_GL_INFO"))
|
||||
printf("EGL EXTN:\n%s\n", str);
|
||||
// Disable Partial Rendering
|
||||
if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
|
||||
{
|
||||
extn_have_buffer_age = 0;
|
||||
glsym_eglSwapBuffersWithDamage = NULL;
|
||||
}
|
||||
if (!strstr(str, "EGL_EXT_buffer_age"))
|
||||
{
|
||||
extn_have_buffer_age = 0;
|
||||
|
|
|
@ -179,8 +179,15 @@ gl_extn_veto(Render_Engine *re)
|
|||
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
|
||||
if (str)
|
||||
{
|
||||
const char *s;
|
||||
if (getenv("EVAS_GL_INFO"))
|
||||
printf("EGL EXTN:\n%s\n", str);
|
||||
// Disable Partial Rendering
|
||||
if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
|
||||
{
|
||||
extn_have_buffer_age = EINA_FALSE;
|
||||
glsym_eglSwapBuffersWithDamage = NULL;
|
||||
}
|
||||
if (!strstr(str, "EGL_EXT_buffer_age"))
|
||||
{
|
||||
extn_have_buffer_age = EINA_FALSE;
|
||||
|
|
Loading…
Reference in New Issue