summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video/directfb/SDL_DirectFB_yuv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video/directfb/SDL_DirectFB_yuv.c b/src/video/directfb/SDL_DirectFB_yuv.c
index 583b8274e..ad0910e98 100644
--- a/src/video/directfb/SDL_DirectFB_yuv.c
+++ b/src/video/directfb/SDL_DirectFB_yuv.c
@@ -118,6 +118,15 @@ static DFBResult CreateYUVSurface(_THIS, struct private_yuvhwdata *hwdata,
break;
}
+ /* Need to set coop level or newer DirectFB versions will fail here. */
+ ret = layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);
+ if (ret)
+ {
+ SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret);
+ layer->Release (layer);
+ return ret;
+ }
+
ret = layer->SetConfiguration (layer, &conf);
if (ret)
{