diff --git a/cogl/cogl/cogl-renderer.c b/cogl/cogl/cogl-renderer.c index 3dc22c190..b0386fa51 100644 --- a/cogl/cogl/cogl-renderer.c +++ b/cogl/cogl/cogl-renderer.c @@ -31,6 +31,7 @@ #include "cogl-config.h" +#include #include #include @@ -768,5 +769,8 @@ cogl_renderer_create_dma_buf (CoglRenderer *renderer, if (winsys->renderer_create_dma_buf) return winsys->renderer_create_dma_buf (renderer, width, height, error); + g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, + "CoglRenderer doesn't support creating DMA buffers"); + return NULL; }