aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r--src/gpu/GrContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 2ccd843839..da26bc6fa6 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1721,7 +1721,7 @@ bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
kRenderTarget_GrTextureFlagBit,
kNone_GrAALevel,
width, height,
- config
+ { config }
};
GrAutoScratchTexture ast(this, desc);
GrTexture* texture = ast.texture();
@@ -1773,7 +1773,7 @@ void GrContext::writePixels(int left, int top, int width, int height,
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();