Bug 1047765 - Pass the proper allocation flags in TextureClient::CreateSimilar. r=Bas

This commit is contained in:
Nicolas Silva 2014-08-06 14:40:07 +02:00
Родитель 5cfb339954
Коммит a10d917743
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -27,11 +27,11 @@ DIBTextureClient::~DIBTextureClient()
TemporaryRef<TextureClient>
DIBTextureClient::CreateSimilar(TextureFlags aFlags,
TextureAllocationFlags aAllocFlags) const
TextureAllocationFlags aAllocFlags) const
{
RefPtr<TextureClient> tex = new DIBTextureClient(mFormat, mFlags | aFlags);
if (!tex->AllocateForSurface(mSize, ALLOC_DEFAULT)) {
if (!tex->AllocateForSurface(mSize, aAllocFlags)) {
return nullptr;
}

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

@ -192,7 +192,7 @@ TextureClientD3D11::CreateSimilar(TextureFlags aFlags,
{
RefPtr<TextureClient> tex = new TextureClientD3D11(mFormat, mFlags | aFlags);
if (!tex->AllocateForSurface(mSize, ALLOC_DEFAULT)) {
if (!tex->AllocateForSurface(mSize, aAllocFlags)) {
return nullptr;
}