src/video/directfb/SDL_DirectFB_yuv.c
branchSDL-1.2
changeset 3920 e5a65c16913b
parent 1782 23fe15f88c03
child 4018 a8a548394a81
--- a/src/video/directfb/SDL_DirectFB_yuv.c	Fri Feb 16 04:56:17 2007 +0000
+++ b/src/video/directfb/SDL_DirectFB_yuv.c	Tue Feb 20 21:05:12 2007 +0000
@@ -118,6 +118,15 @@
       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)
     {