зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1047765 - Pass the proper allocation flags in TextureClient::CreateSimilar. r=Bas
This commit is contained in:
Родитель
5cfb339954
Коммит
a10d917743
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче