aboutsummaryrefslogtreecommitdiffstats
path: root/drmtools.c
diff options
context:
space:
mode:
Diffstat (limited to 'drmtools.c')
-rw-r--r--drmtools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drmtools.c b/drmtools.c
index 4ba3dfd..38c4f35 100644
--- a/drmtools.c
+++ b/drmtools.c
@@ -255,6 +255,8 @@ gfxstate *drm_init(const char *device, const char *output, bool pageflip)
if (pageflip) {
if (drm_init_fb(&fb2) == 0) {
gfx->mem2 = fb2.mem;
+ } else {
+ fprintf(stderr, "drm: can't alloc two fbs, pageflip disabled.\n");
}
}
return gfx;