diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-06-14 12:39:19 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-14 19:15:09 +0000 |
commit | b894c2b339471d417ef926709613f1e96660c331 (patch) | |
tree | d347a5ab20cfbff83a0fd34c3b5f974ce2ac8f5a /src/gpu/GrGpuCommandBuffer.cpp | |
parent | d7b1159d787de27d75032ec213903a03962ec839 (diff) |
Fix failing dm with GrPrimitiveType::kLinesAdjacency
Bug: skia:
Change-Id: I9a73ec49b2bf10700ca95c2073b84cfb606d2fec
Reviewed-on: https://skia-review.googlesource.com/19722
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.cpp')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.cpp b/src/gpu/GrGpuCommandBuffer.cpp index d9a2fa880b..fd6c4bdabb 100644 --- a/src/gpu/GrGpuCommandBuffer.cpp +++ b/src/gpu/GrGpuCommandBuffer.cpp @@ -45,7 +45,7 @@ bool GrGpuCommandBuffer::draw(const GrPipeline& pipeline, #ifdef SK_DEBUG SkASSERT(!primProc.hasInstanceAttribs() || this->gpu()->caps()->instanceAttribSupport()); for (int i = 0; i < meshCount; ++i) { - SkASSERT(GrPrimitiveType::kLinesAdjacency != meshes[i].primitiveType() || + SkASSERT(!GrPrimTypeRequiresGeometryShaderSupport(meshes[i].primitiveType()) || this->gpu()->caps()->shaderCaps()->geometryShaderSupport()); SkASSERT(primProc.hasVertexAttribs() == meshes[i].hasVertexData()); SkASSERT(primProc.hasInstanceAttribs() == meshes[i].isInstanced()); |