mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 1289640 - Fix non-Windows build bustage
This commit is contained in:
parent
f1c314c175
commit
8a4439734f
@ -1117,8 +1117,6 @@ TextureClient::CreateFromSurface(TextureForwarder* aAllocator,
|
||||
{
|
||||
aAllocator = aAllocator->AsTextureForwarder();
|
||||
|
||||
gfx::BackendType moz2DBackend = BackendTypeForBackendSelector(aLayersBackend, aSelector);
|
||||
|
||||
// also test the validity of aAllocator
|
||||
MOZ_ASSERT(aAllocator && aAllocator->IPCOpen());
|
||||
if (!aAllocator || !aAllocator->IPCOpen()) {
|
||||
@ -1133,6 +1131,8 @@ TextureClient::CreateFromSurface(TextureForwarder* aAllocator,
|
||||
|
||||
TextureData* data = nullptr;
|
||||
#if defined(XP_WIN)
|
||||
gfx::BackendType moz2DBackend = BackendTypeForBackendSelector(aLayersBackend, aSelector);
|
||||
|
||||
int32_t maxTextureSize = aAllocator->GetMaxTextureSize();
|
||||
|
||||
if (aLayersBackend == LayersBackend::LAYERS_D3D11 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user