Bug 981393 - Check against correct compositable types for old-textures. r=nical

This commit is contained in:
Matt Woodrow 2014-03-11 11:12:48 +13:00
Родитель 81eff840bb
Коммит bf7cbaf262
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -101,8 +101,8 @@ CompositableParentManager::ReceiveCompositableUpdate(const CompositableOperation
const OpDestroyThebesBuffer& op = aEdit.get_OpDestroyThebesBuffer();
CompositableParent* compositableParent = static_cast<CompositableParent*>(op.compositableParent());
CompositableHost* compositableHost = compositableParent->GetCompositableHost();
if (compositableHost->GetType() != COMPOSITABLE_CONTENT_SINGLE &&
compositableHost->GetType() != COMPOSITABLE_CONTENT_DOUBLE)
if (compositableHost->GetType() != BUFFER_CONTENT &&
compositableHost->GetType() != BUFFER_CONTENT_DIRECT)
{
return false;
}