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 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402277
This commit is contained in:
parent
372defa7ba
commit
b3c3a9ad47
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue