Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 99725a512c05b7f2d41d49d6bfed9df01115c531..2a2b5b6912d77bfda3cc8340d443ae614ac10215 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -10,7 +10,7 @@ |
// We will use the reordering buffer, unless we have NVPR. |
// TODO move NVPR to batch so we can reorder |
static inline bool allow_reordering(const GrCaps* caps) { |
- return !caps->shaderCaps()->pathRenderingSupport(); |
+ return caps && caps->shaderCaps() && !caps->shaderCaps()->pathRenderingSupport(); |
} |
GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context) |