forked from enlightenment/efl
in evas gl engine if age changes then be conservative and assume backbuffer was
invalidated.
This commit is contained in:
parent
deabd07e4b
commit
fba8124fc5
|
@ -35,6 +35,7 @@ struct _Render_Engine
|
||||||
int w, h;
|
int w, h;
|
||||||
int vsync;
|
int vsync;
|
||||||
int lost_back;
|
int lost_back;
|
||||||
|
int prev_age;
|
||||||
|
|
||||||
EVGL_Engine *evgl_engine;
|
EVGL_Engine *evgl_engine;
|
||||||
};
|
};
|
||||||
|
@ -1092,6 +1093,8 @@ eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, i
|
||||||
else if (age == 2) re->mode = MODE_DOUBLE;
|
else if (age == 2) re->mode = MODE_DOUBLE;
|
||||||
else if (age == 3) re->mode = MODE_TRIPLE;
|
else if (age == 3) re->mode = MODE_TRIPLE;
|
||||||
else re->mode = MODE_FULL;
|
else re->mode = MODE_FULL;
|
||||||
|
if (age != re->prev_age) re->mode = MODE_FULL;
|
||||||
|
re->prev_age = age;
|
||||||
}
|
}
|
||||||
else re->mode = MODE_FULL;
|
else re->mode = MODE_FULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue