summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 017f981693..e8f6c16762 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -510,6 +510,16 @@ _fb_flip(Ecore_Drm2_Output *output)
510 int ret = 0; 510 int ret = 0;
511 511
512 fb = output->prep.fb; 512 fb = output->prep.fb;
513 if (!fb)
514 {
515 fb = output->pending.fb;
516 ERR("Trying to flip NULL fb - fallback to pending fb");
517 }
518 if (!fb)
519 {
520 ERR("Pending fb is also NULL, give up flipping");
521 return ret;
522 }
513 523
514 if ((!output->current.fb) || 524 if ((!output->current.fb) ||
515 (output->current.fb->strides[0] != fb->strides[0])) 525 (output->current.fb->strides[0] != fb->strides[0]))