diff --git a/gfx/layers/client/ImageClient.cpp b/gfx/layers/client/ImageClient.cpp index 02f907e9f3b..f905097b40b 100644 --- a/gfx/layers/client/ImageClient.cpp +++ b/gfx/layers/client/ImageClient.cpp @@ -159,6 +159,7 @@ ImageClientSingle::UpdateImage(ImageContainer* aContainer, return false; } mTextureClient->SetDescriptor(desc); +#ifdef MOZ_WIDGET_GONK } else if (image->GetFormat() == GONK_IO_SURFACE) { EnsureTextureClient(TEXTURE_SHARED_GL_EXTERNAL); @@ -174,6 +175,7 @@ ImageClientSingle::UpdateImage(ImageContainer* aContainer, return false; } mTextureClient->SetDescriptor(desc); +#endif } else { nsRefPtr surface = image->GetAsSurface(); MOZ_ASSERT(surface);