diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index aa977dfa104..91a94ca4ab6 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -282,7 +282,9 @@ TextureClient::CreateTextureClientForDrawing(ISurfaceAllocator* aAllocator, aMoz2DBackend = gfxPlatform::GetPlatform()->GetContentBackend(); } +#if defined(XP_WIN) || defined(MOZ_WIDGET_GONK) int32_t maxTextureSize = aAllocator->GetMaxTextureSize(); +#endif RefPtr result;