Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index f3f00f172893706e5bfac7359da20ca2e877a7f2..ce15b4151f470395ac8016200f753a3a6b622a66 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -492,12 +492,16 @@ const GrGpu::MultisampleSpecs& GrGpu::getMultisampleSpecs(GrRenderTarget* rt, |
//////////////////////////////////////////////////////////////////////////////// |
-void GrGpu::draw(const GrPipeline& pipeline, |
+bool GrGpu::draw(const GrPipeline& pipeline, |
const GrPrimitiveProcessor& primProc, |
const GrMesh* meshes, |
int meshCount) { |
+ if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { |
+ return false; |
+ } |
this->handleDirtyContext(); |
this->onDraw(pipeline, primProc, meshes, meshCount); |
+ return true; |
} |