Removes warnings generated by gcc and clang.
git-svn-id: http://skia.googlecode.com/svn/trunk@2651 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 2ccd843..da26bc6 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1721,7 +1721,7 @@
kRenderTarget_GrTextureFlagBit,
kNone_GrAALevel,
width, height,
- config
+ { config }
};
GrAutoScratchTexture ast(this, desc);
GrTexture* texture = ast.texture();
@@ -1773,7 +1773,7 @@
this->flush(kForceCurrentRenderTarget_FlushBit);
const GrTextureDesc desc = {
- kNone_GrTextureFlags, kNone_GrAALevel, width, height, config
+ kNone_GrTextureFlags, kNone_GrAALevel, width, height, { config }
};
GrAutoScratchTexture ast(this, desc);
GrTexture* texture = ast.texture();