forked from enlightenment/efl
gl_drm: stop trying to figure out buffer age if gl extension isn't present
If we don't have the right extension for age we probably don't have partial updates either. The code to get the age calculations right is actually much nastier than this anyway since gbm can hand back buffers in arbitrary order, and as many as it feels like.
This commit is contained in:
parent
4bdc9d4d07
commit
f10b3f79a2
|
@ -600,25 +600,7 @@ evas_outbuf_buffer_state_get(Outbuf *ob)
|
|||
}
|
||||
else
|
||||
{
|
||||
int delta;
|
||||
|
||||
delta = (ob->priv.last - ob->priv.curr +
|
||||
(ob->priv.last > ob->priv.last ?
|
||||
0 : ob->priv.num)) % ob->priv.num;
|
||||
|
||||
switch (delta)
|
||||
{
|
||||
case 0:
|
||||
return MODE_COPY;
|
||||
case 1:
|
||||
return MODE_DOUBLE;
|
||||
case 2:
|
||||
return MODE_TRIPLE;
|
||||
case 3:
|
||||
return MODE_QUADRUPLE;
|
||||
default:
|
||||
return MODE_FULL;
|
||||
}
|
||||
return MODE_FULL;
|
||||
}
|
||||
|
||||
return ob->swap_mode;
|
||||
|
|
Loading…
Reference in New Issue