Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 9cc699cecf26ac6517cde10c779a932a722cdbff..d283df794d3da678f7fb173f1663dbe75dafded3 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -569,10 +569,6 @@ bool GrGLGpu::onWritePixels(GrSurface* surface, |
int left, int top, int width, int height, |
GrPixelConfig config, const void* buffer, |
size_t rowBytes) { |
- if (NULL == buffer) { |
- return false; |
- } |
- |
GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture()); |
if (!glTex) { |
return false; |