aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gpu/src/GrGpuGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/src/GrGpuGL.cpp b/gpu/src/GrGpuGL.cpp
index 9586c12f91..7916a91754 100644
--- a/gpu/src/GrGpuGL.cpp
+++ b/gpu/src/GrGpuGL.cpp
@@ -1331,7 +1331,7 @@ bool GrGpuGL::createStencilBufferForRenderTarget(GrRenderTarget* rt,
// as well.
GrGLTexture* tex = (GrGLTexture*) rt->asTexture();
width = GrMax(width, tex->allocWidth());
- height = GrMax(height, tex->allocWidth());
+ height = GrMax(height, tex->allocHeight());
int samples = rt->numSamples();
GrGLuint sbID;