mirror of
https://github.com/yawut/SDL.git
synced 2026-09-09 01:26:24 -05:00
Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay
creation will fail in newer DirectFB versions. Fixes Bugzilla #394. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user