entity sharing: make !shareable entity non-fatal.

Just because the entity isn't shareable, we should bring down the server.
Just ignore the extra screen and keep going.
This commit is contained in:
Dave Airlie 2007-12-20 10:11:26 +10:00
parent 50e80c3987
commit 7ef7727b80

View File

@ -290,8 +290,10 @@ xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex)
if (entityIndex == -1)
return;
if (xf86Entities[entityIndex]->inUse &&
!(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL))
FatalError("Requested Entity already in use!\n");
!(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL)) {
ErrorF("Requested Entity already in use!\n");
return;
}
pScrn->numEntities++;
pScrn->entityList = xnfrealloc(pScrn->entityList,